diff options
author | jstebbins <[email protected]> | 2015-05-20 17:52:51 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-05-20 17:52:51 +0000 |
commit | 35cb55b6f77e21841fd46b666adc1888fcc81854 (patch) | |
tree | 493032b505051f0fb17f2b0105cba26ab368d960 /gtk/src/settings.c | |
parent | 448fcf8b021bbe59a413a033356f047eaf3343bc (diff) |
LinGui: use libhb to init audio and subtitle lists
This eliminates a lot of essentially duplicate code in LinGui for
initializing these lists.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7213 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r-- | gtk/src/settings.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 9349015a4..4fde72e7b 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -49,6 +49,18 @@ ghb_settings_combo_option(const GhbValue *settings, const gchar *key) return ghb_lookup_combo_option(key, ghb_dict_get_value(settings, key)); } +GhbValue *ghb_get_job_settings(GhbValue *settings) +{ + GhbValue *job; + job = ghb_dict_get(settings, "Job"); + if (job == NULL) + { + job = ghb_dict_new(); + ghb_dict_set(settings, "Job", job); + } + return job; +} + // Map widget names to setting keys // Widgets that map to settings have names // of this format: s_<setting key> |