summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-03-26 14:42:09 +0000
committerjstebbins <[email protected]>2014-03-26 14:42:09 +0000
commit693288dbf2312846f0a8b3cebad7c404d89c6713 (patch)
tree7d6b639ed0c154c5f65e5a335e1085dc5cc50803 /gtk
parentfc40ba55cdc0221526d144fa84a955e46198ea69 (diff)
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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/settings.c2
1 files changed, 1 insertions, 1 deletions
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);
}