From 693288dbf2312846f0a8b3cebad7c404d89c6713 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 26 Mar 2014 14:42:09 +0000 Subject: LinGui: fix problem cause by change in behavior of libgtk 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 198fded6a..cd2d21eb6 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -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); } -- cgit v1.2.3