diff options
author | jstebbins <[email protected]> | 2011-10-16 17:33:20 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-10-16 17:33:20 +0000 |
commit | 49fad04f4365f0c3c01583dabd8d261ec76505f3 (patch) | |
tree | dee0f99ba705f57f21bffa8390380974a521ffba /gtk/src/settings.c | |
parent | cf10a485d3892f8d2d055c62ba0b853a7286bd57 (diff) |
LinGui: experimental support for batch queuing
This allows all titles in the title popup to be added to the queue in
one go. It uses the current *preset* for the settings. I.e. settings
changes in the UI are ignored. This deficiency will be rectified at a
future time.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4294 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r-- | gtk/src/settings.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 2fe0b5e6d..389120351 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -707,6 +707,28 @@ update_widget(GtkWidget *widget, const GValue *value) } int +ghb_ui_update_from_settings(GtkBuilder *builder, const gchar *name, const GValue *settings) +{ + GObject *object; + GValue * value; + + g_debug("ghb_ui_update_from_settings() %s", name); + if (name == NULL) + return 0; + value = ghb_settings_get_value(settings, name); + if (value == NULL) + return 0; + object = GHB_OBJECT(builder, name); + if (object == NULL) + { + g_debug("Failed to find widget for key: %s\n", name); + return -1; + } + update_widget((GtkWidget*)object, value); + return 0; +} + +int ghb_ui_update(signal_user_data_t *ud, const gchar *name, const GValue *value) { GObject *object; |