summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-11-26 20:01:49 +0000
committerjstebbins <[email protected]>2008-11-26 20:01:49 +0000
commitb78331a269ee8b8ee3bcc3a9754b50407de83964 (patch)
treeb532b9d264750c356caec661995a1c22a0d1ea8b /gtk/src/callbacks.c
parent111377b18e7c6878bfc7e6d4d4adfab69dfdf180 (diff)
LinGui: reposition the presets frame below toolbar
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1960 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 3223f91cd..c5234e59b 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -2041,14 +2041,15 @@ show_queue_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud)
}
void
-show_presets_toggled_cb(GtkToggleButton *button, signal_user_data_t *ud)
+show_presets_toggled_cb(GtkWidget *action, signal_user_data_t *ud)
{
GtkWidget *widget;
GtkWindow *hb_window;
g_debug("show_presets_clicked_cb ()");
widget = GHB_WIDGET (ud->builder, "presets_frame");
- if (gtk_toggle_button_get_active(button))
+ ghb_widget_to_setting(ud->settings, action);
+ if (ghb_settings_get_boolean(ud->settings, "show_presets"))
{
gtk_widget_show_now(widget);
}
@@ -2058,7 +2059,6 @@ show_presets_toggled_cb(GtkToggleButton *button, signal_user_data_t *ud)
hb_window = GTK_WINDOW(GHB_WIDGET (ud->builder, "hb_window"));
gtk_window_resize(hb_window, 16, 16);
}
- ghb_widget_to_setting(ud->settings, GTK_WIDGET(button));
ghb_pref_save(ud->settings, "show_presets");
}