summaryrefslogtreecommitdiff
path: root/daemon/gdm-display-factory.h
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-12-23 12:09:52 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-12-23 16:04:05 +0100
commita97b09c2a335a54ea53c1a4979defb0b4d111484 (patch)
tree0e6ac5d28a26ecf057cecd73d497e4e609bb0fca /daemon/gdm-display-factory.h
parentffdef9716e6a169a844ff761f6537eca1360eb63 (diff)
downloadgdm-a97b09c2a335a54ea53c1a4979defb0b4d111484.tar.gz
display-factory: use G_DECLARE_DERIVABLE_TYPE
Diffstat (limited to 'daemon/gdm-display-factory.h')
-rw-r--r--daemon/gdm-display-factory.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/daemon/gdm-display-factory.h b/daemon/gdm-display-factory.h
index 1cffa1bd..b17cb1c8 100644
--- a/daemon/gdm-display-factory.h
+++ b/daemon/gdm-display-factory.h
@@ -28,28 +28,16 @@
G_BEGIN_DECLS
-#define GDM_TYPE_DISPLAY_FACTORY (gdm_display_factory_get_type ())
-#define GDM_DISPLAY_FACTORY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_DISPLAY_FACTORY, GdmDisplayFactory))
-#define GDM_DISPLAY_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_DISPLAY_FACTORY, GdmDisplayFactoryClass))
-#define GDM_IS_DISPLAY_FACTORY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_DISPLAY_FACTORY))
-#define GDM_IS_DISPLAY_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_DISPLAY_FACTORY))
-#define GDM_DISPLAY_FACTORY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_DISPLAY_FACTORY, GdmDisplayFactoryClass))
+#define GDM_TYPE_DISPLAY_FACTORY (gdm_display_factory_get_type ())
+G_DECLARE_DERIVABLE_TYPE (GdmDisplayFactory, gdm_display_factory, GDM, DISPLAY_FACTORY, GObject)
-typedef struct GdmDisplayFactoryPrivate GdmDisplayFactoryPrivate;
-
-typedef struct
-{
- GObject parent;
- GdmDisplayFactoryPrivate *priv;
-} GdmDisplayFactory;
-
-typedef struct
+struct _GdmDisplayFactoryClass
{
GObjectClass parent_class;
gboolean (*start) (GdmDisplayFactory *factory);
gboolean (*stop) (GdmDisplayFactory *factory);
-} GdmDisplayFactoryClass;
+};
typedef enum
{