diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 1 | ||||
-rw-r--r-- | gtk/src/presets.c | 10 | ||||
-rw-r--r-- | gtk/src/presets.h | 2 |
3 files changed, 13 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 28400cef0..e025e240b 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1193,6 +1193,7 @@ ghb_load_settings(signal_user_data_t * ud) if (preset_modified) { ghb_clear_presets_selection(ud); + ghb_preset_menu_button_refresh(ud, fullname, type); } else { diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 625d2ffcd..06a29dd05 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -553,6 +553,16 @@ set_preset_menu_button_label(signal_user_data_t *ud, hb_preset_index_t *path) gtk_widget_set_tooltip_text(widget, description); } +void +ghb_preset_menu_button_refresh(signal_user_data_t *ud, + const char *fullname, int type) +{ + hb_preset_index_t * path; + + path = hb_preset_search_index(fullname, 0, type); + set_preset_menu_button_label(ud, path); +} + static void select_preset2(signal_user_data_t *ud, hb_preset_index_t *path) { diff --git a/gtk/src/presets.h b/gtk/src/presets.h index c4d8cbaa1..380383249 100644 --- a/gtk/src/presets.h +++ b/gtk/src/presets.h @@ -56,5 +56,7 @@ GhbValue* ghb_read_settings_file(const gchar *path); void ghb_write_settings_file(const gchar *path, GhbValue *dict); GhbValue* ghb_create_copy_mask(GhbValue *settings); GhbValue* ghb_settings_to_preset(GhbValue *settings); +void ghb_preset_menu_button_refresh(signal_user_data_t *ud, + const char *name, int type); #endif // _GHB_PRESETS_H_ |