[gdm] user-manager: separate class and type definitions
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] user-manager: separate class and type definitions
- Date: Fri, 8 Oct 2010 02:05:26 +0000 (UTC)
commit dc20680de85258892aaf207fc0ac8663cbe5aaf1
Author: Ray Strode <rstrode redhat com>
Date: Wed Oct 6 10:30:57 2010 -0400
user-manager: separate class and type definitions
Doing inline class definitions on the typedefs
doesn't match the surrounding code and also confuses
g-ir-scanner.
gui/simple-greeter/gdm-user-manager.h | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.h b/gui/simple-greeter/gdm-user-manager.h
index 96c2284..30138b7 100644
--- a/gui/simple-greeter/gdm-user-manager.h
+++ b/gui/simple-greeter/gdm-user-manager.h
@@ -35,14 +35,17 @@ G_BEGIN_DECLS
#define GDM_USER_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_USER_MANAGER, GdmUserManagerClass))
typedef struct GdmUserManagerPrivate GdmUserManagerPrivate;
+typedef struct GdmUserManager GdmUserManager;
+typedef struct GdmUserManagerClass GdmUserManagerClass;
+typedef enum GdmUserManagerError GdmUserManagerError;
-typedef struct
+struct GdmUserManager
{
GObject parent;
GdmUserManagerPrivate *priv;
-} GdmUserManager;
+};
-typedef struct
+struct GdmUserManagerClass
{
GObjectClass parent_class;
@@ -54,13 +57,13 @@ typedef struct
GdmUser *user);
void (* user_changed) (GdmUserManager *user_manager,
GdmUser *user);
-} GdmUserManagerClass;
+};
-typedef enum
+enum GdmUserManagerError
{
GDM_USER_MANAGER_ERROR_GENERAL,
GDM_USER_MANAGER_ERROR_KEY_NOT_FOUND
-} GdmUserManagerError;
+};
#define GDM_USER_MANAGER_ERROR gdm_user_manager_error_quark ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]