[gnome-initial-setup/wip/sadiq/driver-cleanup: 5/6] driver: Port to use G_DECLARE_DERIVABLE_TYPE
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/sadiq/driver-cleanup: 5/6] driver: Port to use G_DECLARE_DERIVABLE_TYPE
- Date: Wed, 31 Mar 2021 22:15:48 +0000 (UTC)
commit 8a116282b7b69f31b15412c8a7108d4cdb08c2d4
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Mon Mar 15 09:41:12 2021 +0530
driver: Port to use G_DECLARE_DERIVABLE_TYPE
Part-of: <https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/115>
gnome-initial-setup/gis-driver.h | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.h b/gnome-initial-setup/gis-driver.h
index a8f1922b..445e929e 100644
--- a/gnome-initial-setup/gis-driver.h
+++ b/gnome-initial-setup/gis-driver.h
@@ -29,15 +29,9 @@
G_BEGIN_DECLS
-#define GIS_TYPE_DRIVER (gis_driver_get_type ())
-#define GIS_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIS_TYPE_DRIVER,
GisDriver))
-#define GIS_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIS_TYPE_DRIVER,
GisDriverClass))
-#define GIS_IS_DRIVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIS_TYPE_DRIVER))
-#define GIS_IS_DRIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIS_TYPE_DRIVER))
-#define GIS_DRIVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIS_TYPE_DRIVER,
GisDriverClass))
+#define GIS_TYPE_DRIVER (gis_driver_get_type ())
-typedef struct _GisDriver GisDriver;
-typedef struct _GisDriverClass GisDriverClass;
+G_DECLARE_DERIVABLE_TYPE (GisDriver, gis_driver, GIS, DRIVER, GtkApplication)
typedef enum {
UM_LOCAL,
@@ -45,11 +39,6 @@ typedef enum {
NUM_MODES,
} UmAccountMode;
-struct _GisDriver
-{
- GtkApplication parent;
-};
-
struct _GisDriverClass
{
GtkApplicationClass parent_class;
@@ -63,8 +52,6 @@ typedef enum {
GIS_DRIVER_MODE_EXISTING_USER,
} GisDriverMode;
-GType gis_driver_get_type (void);
-
GisAssistant *gis_driver_get_assistant (GisDriver *driver);
void gis_driver_set_user_permissions (GisDriver *driver,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]