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/preview.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/preview.c')
-rw-r--r-- | gtk/src/preview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index 3cbc9ee20..07ae765df 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -877,7 +877,7 @@ preview_button_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) ghb_widget_to_setting (ud->settings, xwidget); ghb_preview_set_visible(ud); ghb_check_dependency(ud, xwidget, NULL); - const gchar *name = gtk_widget_get_name(xwidget); + const gchar *name = ghb_get_setting_key(xwidget); ghb_pref_save(ud->settings, name); } @@ -934,7 +934,7 @@ fullscreen_clicked_cb(GtkWidget *toggle, signal_user_data_t *ud) g_debug("fullscreen_clicked_cb()"); ghb_widget_to_setting (ud->settings, toggle); ghb_check_dependency(ud, toggle, NULL); - const gchar *name = gtk_widget_get_name(toggle); + const gchar *name = ghb_get_setting_key(toggle); ghb_pref_save(ud->settings, name); window = GTK_WINDOW(GHB_WIDGET (ud->builder, "preview_window")); @@ -1030,7 +1030,7 @@ preview_duration_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_live_reset(ud); ghb_widget_to_setting (ud->settings, widget); ghb_check_dependency(ud, widget, NULL); - const gchar *name = gtk_widget_get_name(widget); + const gchar *name = ghb_get_setting_key(widget); ghb_pref_save(ud->settings, name); } |