From 6caad34a87c9f085f3da84d7e65032062a216fc0 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 27 Jun 2018 14:09:07 -0700 Subject: [PATCH] LinGui: fix display of preset name on ubuntu trusty Pango on trusty doesn't understand the "alpha" span attribute and fails to format and display preset name. --- gtk/src/presets.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 58e9da11c..f5e6eabf9 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -542,7 +542,12 @@ set_preset_menu_button_label(signal_user_data_t *ud, hb_preset_index_t *path) dict = hb_preset_get(path); type = ghb_dict_get_int(dict, "Type"); + +#if PANGO_VERSION_CHECK(1, 38, 0) fullname = preset_get_fullname(path, " > "); +#else + fullname = preset_get_fullname(path, " > "); +#endif label = GTK_LABEL(GHB_WIDGET(ud->builder, "presets_menu_button_label")); text = g_strdup_printf("%s%s", type == HB_PRESET_TYPE_CUSTOM ? "Custom" : "Official", fullname); -- 2.49.0