summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-09-19 09:12:17 -0700
committerJohn Stebbins <[email protected]>2017-11-06 08:19:49 -0800
commit8b5b521771ce191e0cb03d403258be81b27f3b80 (patch)
tree4cff2a91b5b85d1519a1a6957a7d4d2cb56738f9 /gtk
parent20251e585da99e360ba46669e64a9dc68f8ae469 (diff)
LinGui: add preset description tooltip to preset menu button
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/ghb.m42
-rw-r--r--gtk/src/presets.c6
2 files changed, 7 insertions, 1 deletions
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