diff options
author | jstebbins <[email protected]> | 2014-02-19 00:06:26 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-19 00:06:26 +0000 |
commit | 79b05392677602129f4ec0119ba0782d62e4b7fe (patch) | |
tree | baa5e016ef05927a166191882598000ed6598141 /gtk/src/values.c | |
parent | dcfe8545b8bf8a9a32be87f847959137c0a251d2 (diff) |
LinGui: rework title list
Title list is now linked to a settings list. There is one settings dict
per title. The settings list is populated when scan completes. As you
change titles, the settings for that title populate the UI. Changes
made are saved in the settings and restored if you go to another title
and then return.
This is preparation for improvements to "Add All to Queue" feature.
Settings for each title can be customized before adding to the queue.
All titles don't have to use the same preset or settings.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6046 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/values.c')
-rw-r--r-- | gtk/src/values.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gtk/src/values.c b/gtk/src/values.c index 2b253c0e6..85886e17e 100644 --- a/gtk/src/values.c +++ b/gtk/src/values.c @@ -2,14 +2,14 @@ /* * presets.c * Copyright (C) John Stebbins 2008-2013 <stebbins@stebbins> - * + * * presets.c is free software. - * + * * You may redistribute it and/or modify it under the terms of the * GNU General Public License, as published by the Free Software * Foundation; either version 2 of the License, or (at your option) * any later version. - * + * */ #include <glib.h> @@ -264,7 +264,7 @@ ghb_value_cmp(const GValue *vala, const GValue *valb) { return 1; } - + if (typa == G_TYPE_STRING) { char *stra, *strb; @@ -288,7 +288,7 @@ ghb_value_cmp(const GValue *vala, const GValue *valb) g_free(strb); return res; } - else if (typa == G_TYPE_INT64 || typa == G_TYPE_INT || + else if (typa == G_TYPE_INT64 || typa == G_TYPE_INT || typa == G_TYPE_BOOLEAN) { return ghb_value_int64(vala) - ghb_value_int64(valb); @@ -446,7 +446,7 @@ ghb_array_value_reset(GValue *gval, guint size) g_value_take_boxed(gval, array); } -GValue* +GValue* ghb_date_value_new(GDate *date) { GValue *gval = ghb_value_new(g_date_get_type()); @@ -454,7 +454,7 @@ ghb_date_value_new(GDate *date) return gval; } -GValue* +GValue* ghb_rawdata_value_new(ghb_rawdata_t *data) { GValue *gval = ghb_value_new(ghb_rawdata_get_type()); @@ -780,14 +780,14 @@ xform_boolean_double(const GValue *bval, GValue *dval) void ghb_register_transforms() { - g_value_register_transform_func(G_TYPE_STRING, G_TYPE_INT64, + g_value_register_transform_func(G_TYPE_STRING, G_TYPE_INT64, xform_string_int64); - g_value_register_transform_func(G_TYPE_STRING, G_TYPE_INT, + g_value_register_transform_func(G_TYPE_STRING, G_TYPE_INT, xform_string_int); - g_value_register_transform_func(G_TYPE_STRING, G_TYPE_DOUBLE, + g_value_register_transform_func(G_TYPE_STRING, G_TYPE_DOUBLE, xform_string_double); - g_value_register_transform_func(G_TYPE_BOOLEAN, G_TYPE_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, + g_value_register_transform_func(G_TYPE_DOUBLE, G_TYPE_STRING, xform_double_string); } |