diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-12-23 12:09:52 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-12-23 16:04:05 +0100 |
commit | a97b09c2a335a54ea53c1a4979defb0b4d111484 (patch) | |
tree | 0e6ac5d28a26ecf057cecd73d497e4e609bb0fca /daemon/gdm-display-factory.h | |
parent | ffdef9716e6a169a844ff761f6537eca1360eb63 (diff) | |
download | gdm-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.h | 20 |
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 { |