[epiphany] EphyDownloadsManager: Use G_DECLARE_FINAL_TYPE
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyDownloadsManager: Use G_DECLARE_FINAL_TYPE
- Date: Sat, 7 Nov 2015 16:55:50 +0000 (UTC)
commit 8aef898979e116ad8cb6f0f4f1d82306e03a8f03
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Nov 7 10:11:07 2015 -0600
EphyDownloadsManager: Use G_DECLARE_FINAL_TYPE
embed/ephy-downloads-manager.c | 7 +------
embed/ephy-downloads-manager.h | 12 ++----------
2 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/embed/ephy-downloads-manager.c b/embed/ephy-downloads-manager.c
index cf34545..9fc714b 100644
--- a/embed/ephy-downloads-manager.c
+++ b/embed/ephy-downloads-manager.c
@@ -34,7 +34,7 @@ enum {
struct _EphyDownloadsManager
{
- GObject parent;
+ GObject parent_instance;
GList *downloads;
@@ -42,11 +42,6 @@ struct _EphyDownloadsManager
guint inhibitor_cookie;
};
-struct _EphyDownloadsManagerClass
-{
- GObjectClass parent_class;
-};
-
static guint signals[LAST_SIGNAL];
G_DEFINE_TYPE (EphyDownloadsManager, ephy_downloads_manager, G_TYPE_OBJECT)
diff --git a/embed/ephy-downloads-manager.h b/embed/ephy-downloads-manager.h
index 620168a..8d5149f 100644
--- a/embed/ephy-downloads-manager.h
+++ b/embed/ephy-downloads-manager.h
@@ -25,17 +25,9 @@
G_BEGIN_DECLS
-#define EPHY_TYPE_DOWNLOADS_MANAGER (ephy_downloads_manager_get_type ())
-#define EPHY_DOWNLOADS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_DOWNLOADS_MANAGER,
EphyDownloadsManager))
-#define EPHY_DOWNLOADS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_DOWNLOADS_MANAGER,
EphyDownloadsManagerClass))
-#define EPHY_IS_DOWNLOADS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_DOWNLOADS_MANAGER))
-#define EPHY_IS_DOWNLOADS_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_DOWNLOADS_MANAGER))
-#define EPHY_DOWNLOADS_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_DOWNLOADS_MANAGER,
EphyDownloadsManagerClass))
+#define EPHY_TYPE_DOWNLOADS_MANAGER (ephy_downloads_manager_get_type ())
-typedef struct _EphyDownloadsManagerClass EphyDownloadsManagerClass;
-typedef struct _EphyDownloadsManager EphyDownloadsManager;
-
-GType ephy_downloads_manager_get_type (void);
+G_DECLARE_FINAL_TYPE (EphyDownloadsManager, ephy_downloads_manager, EPHY, DOWNLOADS_MANAGER, GObject)
void ephy_downloads_manager_add_download (EphyDownloadsManager *manager,
EphyDownload *download);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]