summaryrefslogtreecommitdiff
path: root/libgdm/gdm-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgdm/gdm-client.h')
-rw-r--r--libgdm/gdm-client.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/libgdm/gdm-client.h b/libgdm/gdm-client.h
index 8718a2ef..f73b5556 100644
--- a/libgdm/gdm-client.h
+++ b/libgdm/gdm-client.h
@@ -27,26 +27,8 @@
G_BEGIN_DECLS
-#define GDM_TYPE_CLIENT (gdm_client_get_type ())
-#define GDM_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_CLIENT, GdmClient))
-#define GDM_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_CLIENT, GdmClientClass))
-#define GDM_IS_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_CLIENT))
-#define GDM_IS_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_CLIENT))
-#define GDM_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_CLIENT, GdmClientClass))
-
-typedef struct GdmClientPrivate GdmClientPrivate;
-
-typedef struct
-{
- GObject parent;
- GdmClientPrivate *priv;
-} GdmClient;
-
-typedef struct
-{
- GObjectClass parent_class;
-
-} GdmClientClass;
+#define GDM_TYPE_CLIENT (gdm_client_get_type ())
+G_DECLARE_FINAL_TYPE (GdmClient, gdm_client, GDM, CLIENT, GObject)
#define GDM_CLIENT_ERROR (gdm_client_error_quark ())
@@ -54,7 +36,6 @@ typedef enum _GdmClientError {
GDM_CLIENT_ERROR_GENERIC = 0,
} GdmClientError;
-GType gdm_client_get_type (void);
GQuark gdm_client_error_quark (void);
GdmClient *gdm_client_new (void);
@@ -122,10 +103,6 @@ GdmChooser *gdm_client_get_chooser_sync (GdmClient *client,
GCancellable *cancellable,
GError **error);
-#if GLIB_CHECK_VERSION(2, 44, 0)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC (GdmClient, g_object_unref)
-#endif
-
G_END_DECLS
#endif /* __GDM_CLIENT_H */