From c83a7a13e1464d135bfb32b0abc91e28f4ca2040 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 26 Jan 2013 18:29:00 +0100 Subject: [PATCH] filechooser: Move settings key defines into header ... so we can read/write those keys from different source files. --- gtk/gtkfilechooserdefault.c | 9 --------- gtk/gtkfilechooserprivate.h | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 27ad24ccfe..59022c6a57 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -256,15 +256,6 @@ typedef enum { #define NUM_LINES 45 #define NUM_CHARS 60 -#define SETTINGS_KEY_LOCATION_MODE "location-mode" -#define SETTINGS_KEY_SHOW_HIDDEN "show-hidden" -#define SETTINGS_KEY_SHOW_SIZE_COLUMN "show-size-column" -#define SETTINGS_KEY_SORT_COLUMN "sort-column" -#define SETTINGS_KEY_SORT_ORDER "sort-order" -#define SETTINGS_KEY_WINDOW_POSITION "window-position" -#define SETTINGS_KEY_WINDOW_SIZE "window-size" -#define SETTINGS_KEY_SIDEBAR_WIDTH "sidebar-width" - static void gtk_file_chooser_default_iface_init (GtkFileChooserIface *iface); static void gtk_file_chooser_embed_default_iface_init (GtkFileChooserEmbedIface *iface); diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index fa2dc66fca..907c9df236 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -34,6 +34,15 @@ G_BEGIN_DECLS +#define SETTINGS_KEY_LOCATION_MODE "location-mode" +#define SETTINGS_KEY_SHOW_HIDDEN "show-hidden" +#define SETTINGS_KEY_SHOW_SIZE_COLUMN "show-size-column" +#define SETTINGS_KEY_SORT_COLUMN "sort-column" +#define SETTINGS_KEY_SORT_ORDER "sort-order" +#define SETTINGS_KEY_WINDOW_POSITION "window-position" +#define SETTINGS_KEY_WINDOW_SIZE "window-size" +#define SETTINGS_KEY_SIDEBAR_WIDTH "sidebar-width" + #define GTK_FILE_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_FILE_CHOOSER, GtkFileChooserIface)) typedef struct _GtkFileChooserIface GtkFileChooserIface;