From: John Stebbins <jstebbins.hb@gmail.com> Date: Tue, 19 Sep 2017 16:12:17 +0000 (-0700) Subject: LinGui: add preset description tooltip to preset menu button X-Git-Tag: 1.1.0~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b5b521771ce191e0cb03d403258be81b27f3b80;p=handbrake LinGui: add preset description tooltip to preset menu button --- diff --git a/gtk/src/ghb.m4 b/gtk/src/ghb.m4 index 93d070061..06888b4e8 100644 --- a/gtk/src/ghb.m4 +++ b/gtk/src/ghb.m4 @@ -883,7 +883,7 @@ libx264 authors: </child> <child> <object class="GtkCheckMenuItem" id="show_presets"> - <property name="label" translatable="yes">_Show Presets</property> + <property name="label" translatable="yes">Presets _List</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="use_underline">True</property> diff --git a/gtk/src/presets.c b/gtk/src/presets.c index bfa898192..955d9f9db 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -566,7 +566,9 @@ static void set_preset_menu_button_label(signal_user_data_t *ud, hb_preset_index_t *path) { char * fullname, * text; + const char * description; GtkLabel * label; + GtkWidget * widget; GhbValue * dict; int type; @@ -578,6 +580,10 @@ set_preset_menu_button_label(signal_user_data_t *ud, hb_preset_index_t *path) gtk_label_set_markup(label, text); free(fullname); free(text); + + description = ghb_dict_get_string(dict, "PresetDescription"); + widget = GHB_WIDGET(ud->builder, "presets_menu_button"); + gtk_widget_set_tooltip_text(widget, description); } static void