summaryrefslogtreecommitdiffstats
path: root/gtk/src/settings.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-10-15 18:39:45 +0000
committerjstebbins <[email protected]>2008-10-15 18:39:45 +0000
commit8079d10b0c22f7a7270828829286cb9947b8a99d (patch)
treee03881798433f18d5903bc102c13d48102d7eafa /gtk/src/settings.c
parent5aab68603cb6b50a0a08c48497174f53ad771caf (diff)
LinGui: nested presets
new nested builtins. user can create custom folders and drag n drop custom presets. updated mac to linux presets plist translation tool to handle new format git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1835 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r--gtk/src/settings.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c
index e3bec95ea..4cb797fe1 100644
--- a/gtk/src/settings.c
+++ b/gtk/src/settings.c
@@ -290,8 +290,18 @@ ghb_widget_value(GtkWidget *widget)
else if (type == GTK_TYPE_HSCALE)
{
gdouble dval;
+ gint digits;
+
+ digits = gtk_scale_get_digits(GTK_SCALE(widget));
dval = gtk_range_get_value(GTK_RANGE(widget));
- value = ghb_double_value_new(dval);
+ if (digits)
+ {
+ value = ghb_double_value_new(dval);
+ }
+ else
+ {
+ value = ghb_int_value_new(dval);
+ }
}
else if (type == GTK_TYPE_TEXT_VIEW)
{