diff options
author | John Stebbins <[email protected]> | 2016-05-27 09:24:02 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-27 09:24:02 -0600 |
commit | 9ec150b5461cc59eda93c5d3b3199fd97809972d (patch) | |
tree | d38148b0ebddfde283eaf090132920da3eeb01b0 /gtk/src/settings.c | |
parent | a34b503a4adcdaa500cc92d5e06efcbb3c2a4104 (diff) |
LinGui: add source title dict to queue
By adding the title to the queue entry, all necessary information for
displaying queued job is present in the queue entry. So I no longer
need hackish "Description" key in job audio and subtitle lists.
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r-- | gtk/src/settings.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 876a94aaa..f8733ceb1 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -60,6 +60,27 @@ 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_title_settings(GhbValue *settings) +{ + GhbValue *title; + title = ghb_dict_get(settings, "Title"); + return title; +} + +GhbValue *ghb_get_title_audio_list(GhbValue *settings) +{ + GhbValue *title_dict = ghb_get_title_settings(settings); + GhbValue *audio_list = ghb_dict_get(title_dict, "AudioList"); + return audio_list; +} + +GhbValue *ghb_get_title_subtitle_list(GhbValue *settings) +{ + GhbValue *title_dict = ghb_get_title_settings(settings); + GhbValue *subtitle_list = ghb_dict_get(title_dict, "SubtitleList"); + return subtitle_list; +} + GhbValue *ghb_get_job_settings(GhbValue *settings) { GhbValue *job; |