[gnome-panel/wip/3.0-freeze-break: 20/32] panel: Move defines for GSettings schemas in one header



commit 369256e6730ac0b3cd5605db3e1abd31e97d2776
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Mar 23 18:47:21 2011 +0100

    panel: Move defines for GSettings schemas in one header
    
    This will be much easier if we have all the defines in one file.

 gnome-panel/Makefile.am        |    1 +
 gnome-panel/panel-run-dialog.c |    7 +------
 gnome-panel/panel-schemas.h    |   10 ++++++++++
 3 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/gnome-panel/Makefile.am b/gnome-panel/Makefile.am
index e47e473..4459959 100644
--- a/gnome-panel/Makefile.am
+++ b/gnome-panel/Makefile.am
@@ -114,6 +114,7 @@ panel_headers =			\
 	panel-ditem-editor.h	\
 	panel-icon-names.h	\
 	panel-modules.h		\
+	panel-schemas.h		\
 	panel-applet-info.h
 
 gnome_panel_SOURCES =			\
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index d4a14f3..cda6afb 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -60,12 +60,7 @@
 #include "panel-lockdown.h"
 #include "panel-xutils.h"
 #include "panel-icon-names.h"
-
-#define PANEL_RUN_SCHEMA                 "org.gnome.gnome-panel.run-dialog"
-#define PANEL_RUN_HISTORY_KEY            "history"
-#define PANEL_RUN_ENABLE_COMPLETION_KEY  "enable-autocompletion"
-#define PANEL_RUN_ENABLE_LIST_KEY        "enable-program-list"
-#define PANEL_RUN_SHOW_LIST_KEY          "show-program-list"
+#include "panel-schemas.h"
 
 typedef struct {
 	GtkWidget        *run_dialog;
diff --git a/gnome-panel/panel-schemas.h b/gnome-panel/panel-schemas.h
new file mode 100644
index 0000000..6ee9f2b
--- /dev/null
+++ b/gnome-panel/panel-schemas.h
@@ -0,0 +1,10 @@
+#ifndef __PANEL_SCHEMAS_H__
+#define __PANEL_SCHEMAS_H__
+
+#define PANEL_RUN_SCHEMA                 "org.gnome.gnome-panel.run-dialog"
+#define PANEL_RUN_HISTORY_KEY            "history"
+#define PANEL_RUN_ENABLE_COMPLETION_KEY  "enable-autocompletion"
+#define PANEL_RUN_ENABLE_LIST_KEY        "enable-program-list"
+#define PANEL_RUN_SHOW_LIST_KEY          "show-program-list"
+
+#endif /* __PANEL_SCHEMAS_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]