How to use Cursor::from_callback ?
#2205
Doublonmousse
started this conversation in
General
Replies: 1 comment
-
|
Just noticed this difference Thread 1 "basics" hit Breakpoint 1.1, gdk_texture_get_width (texture=0x55555569f910 [GdkMemoryTexture]) at ../gdk/gdktexture.c:812
Thread 1 "basics" hit Breakpoint 1.1, gdk_texture_get_width (texture=0x55555569f910) at ../gdk/gdktexture.c:812Notice the missing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to reproduce https://gitlab.gnome.org/GNOME/gtk/-/blob/main/demos/gtk-demo/cursors.c?ref_type=heads but from rust to get cursors from svg files that are scaled correctly at the right size with no blurriness and I can't get it to work at all.
There was no example I could find.
Starting from the
basicsexample, the following code(with a bogus image just to test a texture creation) segfaults with the following output
Putting a break point on
gdk_texture_get_width, we see that the adress doesn't change but the call fails when it's actually time to update the cursorAm I missing something ?
Beta Was this translation helpful? Give feedback.
All reactions