[gnome-session] manager: Split off GsmManagerLogoutMode enum



commit 68005e5a93ce80d2742d8a7e8cfe2efaea10c7d4
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 24 09:34:08 2013 +0100

    manager: Split off GsmManagerLogoutMode enum
    
    For use in gnome-settings-daemon through cut'n'paste.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692430

 gnome-session/Makefile.am               |    1 +
 gnome-session/gsm-manager-logout-mode.h |   35 +++++++++++++++++++++++++++++++
 gnome-session/gsm-manager.h             |    7 +-----
 3 files changed, 37 insertions(+), 6 deletions(-)
---
diff --git a/gnome-session/Makefile.am b/gnome-session/Makefile.am
index 3d54cfa..6cb38b8 100644
--- a/gnome-session/Makefile.am
+++ b/gnome-session/Makefile.am
@@ -51,6 +51,7 @@ gnome_session_SOURCES =				\
 	gsm-inhibitor-flag.h			\
 	gsm-manager.c				\
 	gsm-manager.h				\
+	gsm-manager-logout-mode.h		\
 	gsm-process-helper.c			\
 	gsm-process-helper.h			\
 	gsm-session-fill.c			\
diff --git a/gnome-session/gsm-manager-logout-mode.h b/gnome-session/gsm-manager-logout-mode.h
new file mode 100644
index 0000000..41b1883
--- /dev/null
+++ b/gnome-session/gsm-manager-logout-mode.h
@@ -0,0 +1,35 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2008 William Jon McCann <jmccann redhat com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+
+#ifndef __GSM_MANAGER_LOGOUT_MODE_H
+#define __GSM_MANAGER_LOGOUT_MODE_H
+
+G_BEGIN_DECLS
+
+typedef enum {
+        GSM_MANAGER_LOGOUT_MODE_NORMAL = 0,
+        GSM_MANAGER_LOGOUT_MODE_NO_CONFIRMATION,
+        GSM_MANAGER_LOGOUT_MODE_FORCE
+} GsmManagerLogoutMode;
+
+G_END_DECLS
+
+#endif /* __GSM_MANAGER_LOGOUT_MODE_H */
diff --git a/gnome-session/gsm-manager.h b/gnome-session/gsm-manager.h
index 666d1d5..f9632d7 100644
--- a/gnome-session/gsm-manager.h
+++ b/gnome-session/gsm-manager.h
@@ -26,6 +26,7 @@
 #include <dbus/dbus-glib.h>
 
 #include "gsm-store.h"
+#include "gsm-manager-logout-mode.h"
 
 G_BEGIN_DECLS
 
@@ -100,12 +101,6 @@ typedef enum
 
 #define GSM_MANAGER_ERROR gsm_manager_error_quark ()
 
-typedef enum {
-        GSM_MANAGER_LOGOUT_MODE_NORMAL = 0,
-        GSM_MANAGER_LOGOUT_MODE_NO_CONFIRMATION,
-        GSM_MANAGER_LOGOUT_MODE_FORCE
-} GsmManagerLogoutMode;
-
 GType               gsm_manager_error_get_type                 (void);
 #define GSM_MANAGER_TYPE_ERROR (gsm_manager_error_get_type ())
 



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