diff options
author | jstebbins <[email protected]> | 2010-02-23 00:06:22 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-02-23 00:06:22 +0000 |
commit | 0df7722d93ee1eda7eda1d86745fea2b6df19933 (patch) | |
tree | a1e30a7d5cfd55b6c1b6247d12cdff2c77aa0ea9 /gtk/src/main.c | |
parent | 0a08b6778fa3dc2c38379d72252f23671e02e3c7 (diff) |
LinGui: fix a bunch of brokenness on Ubuntu 10.04 (lucid)
gtk 2.19 has changed how object id's are stored by gtkbuilder.
The widget name is no longer assigned to the builder object id. Instead
the id is stored in a special property. Getting incorrect object id's
caused all settings values to be referenced incorrectly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3135 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index e92f974d5..55b3cfe63 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -152,7 +152,7 @@ MyConnect( g_return_if_fail(handler_name != NULL); g_return_if_fail(signal_name != NULL); - //const gchar *name = gtk_widget_get_name((GtkWidget*)object); + //const gchar *name = ghb_get_setting_key((GtkWidget*)object); //g_message("\n\nname %s", name); g_debug("handler_name %s", handler_name); g_debug("signal_name %s", signal_name); @@ -192,7 +192,7 @@ change_font(GtkWidget *widget, gpointer data) font_desc = pango_font_description_from_string(font); if (font_desc == NULL) exit(1); gtk_widget_modify_font(widget, font_desc); - name = gtk_widget_get_name(widget); + name = ghb_get_setting_key(widget); g_debug("changing font for widget %s\n", name); if (GTK_IS_CONTAINER(widget)) { |