[gnome-control-center] online-accounts: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] online-accounts: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 30 Nov 2016 16:18:59 +0000 (UTC)
commit 013b2d865be689b50f95453a52277c15d30a7b67
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Nov 30 13:16:27 2016 +0100
online-accounts: Use G_DECLARE_FINAL_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=774222
panels/online-accounts/cc-online-accounts-panel.c | 7 -------
panels/online-accounts/cc-online-accounts-panel.h | 8 ++------
2 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c
b/panels/online-accounts/cc-online-accounts-panel.c
index 825448c..06fbd8b 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -35,8 +35,6 @@
#include "cc-online-accounts-model.h"
#include "cc-online-accounts-resources.h"
-typedef struct _CcGoaPanelClass CcGoaPanelClass;
-
struct _CcGoaPanel
{
CcPanel parent_instance;
@@ -54,11 +52,6 @@ struct _CcGoaPanel
GtkWidget *accounts_vbox;
};
-struct _CcGoaPanelClass
-{
- CcPanelClass parent_class;
-};
-
static void on_model_row_deleted (GtkTreeModel *tree_model,
GtkTreePath *path,
gpointer user_data);
diff --git a/panels/online-accounts/cc-online-accounts-panel.h
b/panels/online-accounts/cc-online-accounts-panel.h
index d479e99..d44ff0c 100644
--- a/panels/online-accounts/cc-online-accounts-panel.h
+++ b/panels/online-accounts/cc-online-accounts-panel.h
@@ -25,13 +25,9 @@
G_BEGIN_DECLS
-#define CC_TYPE_GOA_PANEL (cc_goa_panel_get_type ())
-#define CC_GOA_PANEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CC_TYPE_GOA_PANEL, CcGoaPanel))
-#define CC_IS_GOA_PANEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CC_TYPE_GOA_PANEL))
+#define CC_TYPE_GOA_PANEL (cc_goa_panel_get_type ())
-typedef struct _CcGoaPanel CcGoaPanel;
-
-GType cc_goa_panel_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (CcGoaPanel, cc_goa_panel, CC, GOA_PANEL, CcPanel)
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]