summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-09-15 16:27:22 -0700
committerJohn Stebbins <[email protected]>2017-11-06 08:19:49 -0800
commit737d67c0e7e9a404f25ed82318d243e344ec7672 (patch)
treeca8bc876d7d72846ab6422829320357691a18866 /gtk/src/presets.h
parentd7a59d58cbaa5f08792dbb97c48065fdadbe4414 (diff)
LinGui: Add preset selection menu
And convert appliction to a GtkApplication. This allows the use of GActions for menu and other control actions. It's a cleaner simpler interface that automatically tracks when multiple widgets perform the same action and keeps their state in sync.
Diffstat (limited to 'gtk/src/presets.h')
-rw-r--r--gtk/src/presets.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/src/presets.h b/gtk/src/presets.h
index d2d385372..b71137375 100644
--- a/gtk/src/presets.h
+++ b/gtk/src/presets.h
@@ -42,10 +42,11 @@ gchar* ghb_get_user_config_dir(gchar *subdir);
void ghb_override_user_config_dir(char *dir);
void ghb_settings_to_ui(signal_user_data_t *ud, GhbValue *dict);
void ghb_clear_presets_selection(signal_user_data_t *ud);
-void ghb_select_preset(GtkBuilder *builder, const char *name);
-void ghb_select_default_preset(GtkBuilder *builder);
+void ghb_select_preset(signal_user_data_t *ud, const char *name);
+void ghb_select_default_preset(signal_user_data_t *ud);
void ghb_presets_list_init(signal_user_data_t *ud,
const hb_preset_index_t *path);
+void ghb_presets_menu_init(signal_user_data_t *ud);
int ghb_find_pid_file();
void ghb_write_pid_file();
GhbValue* ghb_get_current_preset(signal_user_data_t *ud);