[gnome-online-accounts/wip/rishi/port-to-g-declare] web-view: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/port-to-g-declare] web-view: Use G_DECLARE_FINAL_TYPE
- Date: Fri, 6 Dec 2019 16:37:57 +0000 (UTC)
commit f1f532279aacd894f6ca72ea1c8e7c653061f025
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 6 16:08:11 2019 +0100
web-view: Use G_DECLARE_FINAL_TYPE
https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40
src/goabackend/goawebview.c | 5 -----
src/goabackend/goawebview.h | 7 +------
2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/goabackend/goawebview.c b/src/goabackend/goawebview.c
index 6b18149d..de756402 100644
--- a/src/goabackend/goawebview.c
+++ b/src/goabackend/goawebview.c
@@ -46,11 +46,6 @@ struct _GoaWebView
gulong notify_progress_id;
};
-struct _GoaWebViewClass
-{
- GtkOverlayClass parent_class;
-};
-
enum
{
PROP_0,
diff --git a/src/goabackend/goawebview.h b/src/goabackend/goawebview.h
index 4b415cdc..4d5d77f8 100644
--- a/src/goabackend/goawebview.h
+++ b/src/goabackend/goawebview.h
@@ -26,13 +26,8 @@
G_BEGIN_DECLS
#define GOA_TYPE_WEB_VIEW (goa_web_view_get_type ())
-#define GOA_WEB_VIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GOA_TYPE_WEB_VIEW, GoaWebView))
-#define GOA_IS_WEB_VIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GOA_TYPE_WEB_VIEW))
+G_DECLARE_FINAL_TYPE (GoaWebView, goa_web_view, GOA, WEB_VIEW, GtkOverlay);
-typedef struct _GoaWebView GoaWebView;
-typedef struct _GoaWebViewClass GoaWebViewClass;
-
-GType goa_web_view_get_type (void) G_GNUC_CONST;
GtkWidget *goa_web_view_new (GoaProvider *provider,
const gchar *existing_identity);
GtkWidget *goa_web_view_get_view (GoaWebView *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]