From: John Stebbins Date: Wed, 27 Jun 2018 21:09:07 +0000 (-0700) Subject: LinGui: fix display of preset name on ubuntu trusty X-Git-Tag: 1.1.2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6caad34a87c9f085f3da84d7e65032062a216fc0;p=handbrake 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. --- 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);