summaryrefslogtreecommitdiffstats
path: root/gtk/src/values.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-06-15 16:15:53 +0000
committerjstebbins <[email protected]>2010-06-15 16:15:53 +0000
commit542ebf7e5cdc4a5f6c3ac34c56265004ec67affa (patch)
treef10f35c726258e095b7907bde7d3e69db3d3e498 /gtk/src/values.c
parent5e77ed97bc76f247914b49dd402df671f4e4d87c (diff)
LinGui: refresh x264 tab
updated layout, labeling & tooltips group options by encoding features, analysis options, and psychovisual options change b-pyramid from checkbox to combo box to support None, Strict, and Normal options expand psy-rd slider range to 0-2 (was 0-1) relabel "Analysis" to "Partitions". Add new "Most" option to Partitions that is the same as the old "Some" Change "Some" option of Partitions to mean i4x4:i8x8 add weightp combo add adaptive quantization strength slider remove weightb checkbox remove no-fast-pskip checkbox git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3381 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/values.c')
-rw-r--r--gtk/src/values.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/src/values.c b/gtk/src/values.c
index 17319a582..5800a008e 100644
--- a/gtk/src/values.c
+++ b/gtk/src/values.c
@@ -753,6 +753,15 @@ xform_string_double(const GValue *sval, GValue *dval)
}
static void
+xform_double_string(const GValue *dval, GValue *sval)
+{
+ gchar *str;
+ double val = g_value_get_double(dval);
+ str = g_strdup_printf("%g", val);
+ g_value_take_string(sval, str);
+}
+
+static void
xform_boolean_double(const GValue *bval, GValue *dval)
{
gboolean b = g_value_get_boolean(bval);
@@ -771,4 +780,6 @@ ghb_register_transforms()
xform_string_double);
g_value_register_transform_func(G_TYPE_BOOLEAN, G_TYPE_DOUBLE,
xform_boolean_double);
+ g_value_register_transform_func(G_TYPE_DOUBLE, G_TYPE_STRING,
+ xform_double_string);
}