From 9ae7e30dc8daace92d17ea36a4f0bdede00b9471 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 14 May 2015 17:11:48 +0000 Subject: lingui: use libhb preset management from linux gui git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7179 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/queuehandler.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gtk/src/queuehandler.c') diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 876d49ec9..64421f8d9 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -168,10 +168,9 @@ add_to_queue_list(signal_user_data_t *ud, GhbValue *settings, GtkTreeIter *piter // Next line in the display // Preset: PresetName - gchar *preset; + const char *name; gboolean markers; gboolean preset_modified; - const GhbValue *path; const char *mux_id; const hb_container_t *mux; @@ -180,19 +179,17 @@ add_to_queue_list(signal_user_data_t *ud, GhbValue *settings, GtkTreeIter *piter mux = ghb_lookup_container_by_name(mux_id); preset_modified = ghb_dict_get_bool(settings, "preset_modified"); - path = ghb_dict_get_value(settings, "preset"); - preset = ghb_preset_path_string(path); + name = ghb_dict_get_string(settings, "PresetFullName"); markers = ghb_dict_get_bool(settings, "ChapterMarkers"); if (preset_modified) { - XPRINT(_("Modified Preset Based On: %s\n"), preset); + XPRINT(_("Modified Preset Based On: %s\n"), name); } else { - XPRINT(_("Preset: %s\n"), preset); + XPRINT(_("Preset: %s\n"), name); } - g_free(preset); // Next line in the display (Container type) // Format: XXX Container -- cgit v1.2.3