diff options
author | John Stebbins <[email protected]> | 2017-09-15 16:27:22 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-11-06 08:19:49 -0800 |
commit | 737d67c0e7e9a404f25ed82318d243e344ec7672 (patch) | |
tree | ca8bc876d7d72846ab6422829320357691a18866 /gtk/src/settings.h | |
parent | d7a59d58cbaa5f08792dbb97c48065fdadbe4414 (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/settings.h')
-rw-r--r-- | gtk/src/settings.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/gtk/src/settings.h b/gtk/src/settings.h index 22ad7a6b8..13470e45f 100644 --- a/gtk/src/settings.h +++ b/gtk/src/settings.h @@ -29,7 +29,6 @@ #define GHB_WIDGET(b,n) GTK_WIDGET(gtk_builder_get_object ((b), (n))) //#define GHB_WIDGET(b,n) GTK_WIDGET(debug_get_object((b), (n))) -#define GHB_ACTION(b,n) GTK_ACTION(gtk_builder_get_object ((b), (n))) #define GHB_OBJECT(b,n) gtk_builder_get_object ((b), (n)) GObject* debug_get_object(GtkBuilder *b, const gchar *n); @@ -59,23 +58,25 @@ typedef struct preview_s preview_t; typedef struct { gchar *current_dvd_device; - gboolean debug; - gboolean dont_clear_presets; - gboolean scale_busy; - gint cancel_encode; - GtkBuilder *builder; - GhbValue *x264_priv; - GhbValue *globals; - GhbValue *prefs; - GhbValue *settings; - GhbValue *settings_array; - GhbValue *queue; - GIOChannel *activity_log; - GIOChannel *job_activity_log; - preview_t *preview; - gchar *appcast; - gint appcast_len; - GdkVisibilityState hb_visibility; + gboolean debug; + gboolean dont_clear_presets; + gboolean scale_busy; + gint cancel_encode; + GtkBuilder * builder; + GhbValue * x264_priv; + GhbValue * globals; + GhbValue * prefs; + GhbValue * settings; + GhbValue * settings_array; + GhbValue * queue; + GIOChannel * activity_log; + GIOChannel * job_activity_log; + preview_t * preview; + gchar * appcast; + gint appcast_len; + GdkVisibilityState hb_visibility; + int stderr_src_id; + GtkApplication * app; } signal_user_data_t; enum |