summaryrefslogtreecommitdiffstats
path: root/gtk/src/settings.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-10-06 15:46:35 +0000
committerjstebbins <[email protected]>2009-10-06 15:46:35 +0000
commit7c3a4811cebc515c5f055e7547eebc29f127b7c8 (patch)
treebf2e62224a0531252b36c27224334ce33052f7d1 /gtk/src/settings.c
parent97949962d2e25cbdb08a27c0b7fb2c47ad17f318 (diff)
LinGui: allow display of picture settings before a scan has been done
preview window is still blocked, but picture settings can be viewed and modified for the purpose of setting up a preset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2871 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r--gtk/src/settings.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c
index 20cdb38c9..3e3de4ba0 100644
--- a/gtk/src/settings.c
+++ b/gtk/src/settings.c
@@ -238,6 +238,13 @@ ghb_widget_value(GtkWidget *widget)
bval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
value = ghb_boolean_value_new(bval);
}
+ else if (type == GTK_TYPE_TOGGLE_TOOL_BUTTON)
+ {
+ g_debug("\ttoggle_tool_button");
+ gboolean bval;
+ bval = gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(widget));
+ value = ghb_boolean_value_new(bval);
+ }
else if (type == GTK_TYPE_TOGGLE_BUTTON)
{
g_debug("\ttoggle_button");
@@ -480,6 +487,11 @@ update_widget(GtkWidget *widget, const GValue *value)
g_debug("check button");
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), ival);
}
+ else if (type == GTK_TYPE_TOGGLE_TOOL_BUTTON)
+ {
+ g_debug("toggle button");
+ gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(widget), ival);
+ }
else if (type == GTK_TYPE_TOGGLE_BUTTON)
{
g_debug("toggle button");