GNOME Bugzilla – Bug 693256
wayland: use the GdkCursorType enum information to lookup the cursor name
Last modified: 2013-02-06 17:00:46 UTC
Use the enum information to generate the cursor name rather than using a lookup table.
Created attachment 235302 [details] [review] wayland: use the GdkCursorType enum information to lookup the cursor name Use the enum information to generate the cursor name rather than using a lookup table.
Review of attachment 235302 [details] [review]: (optionally) apply recommendations and commit. ::: gdk/wayland/gdkcursor-wayland.c @@ +261,1 @@ + enum_class = g_type_class_ref (GDK_TYPE_CURSOR_TYPE); replace with g_type_class_peek ? @@ +263,3 @@ + cursor_name = g_strdup (enum_value->value_nick); + g_strdelimit (cursor_name, "-", '_'); + g_type_class_unref (enum_class); and so can drop this
Attachment 235302 [details] pushed as 4f6d535 - wayland: use the GdkCursorType enum information to lookup the cursor name