LinGui: fix problem cause by change in behavior of libgtk
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 26 Mar 2014 14:42:09 +0000 (14:42 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 26 Mar 2014 14:42:09 +0000 (14:42 +0000)
gtk_buildable_get_name and gtk_widget_get_name now return a string
describing the widget type if the name has not been set instead of
NULL as they used to.  This of coarse breaks everything that depends
on looking up valid widget names.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6131 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/settings.c

index 198fded6a7bc1721449bfd14065353829a1b49b4..cd2d21eb6a8a19b5599bd316a9ebc3c33e9ba974 100644 (file)
@@ -196,7 +196,7 @@ ghb_get_setting_key(GtkWidget *widget)
     if (widget == NULL) return NULL;
     name = gtk_buildable_get_name(GTK_BUILDABLE(widget));
 
-    if (name == NULL)
+    if (name == NULL || !strncmp(name, "Gtk", 3))
     {
         name = gtk_widget_get_name(widget);
     }