summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2016-11-19 11:57:26 +0100
committerDebarshi Ray <debarshir@gnome.org>2016-11-21 15:32:52 +0100
commitda93327e76ab36bc131630067340baac70667f7d (patch)
treef267ff7f695c41b73dff3cc5efa8305a708b6589
parent971b7e4ebcbbdb6b857369aa9287cefa0d3b4291 (diff)
downloadlibgd-da93327e76ab36bc131630067340baac70667f7d.tar.gz
main-view: Use G_DECLARE_DERIVABLE_TYPE
This bumps our GLib requirement to 2.44. https://bugzilla.gnome.org/show_bug.cgi?id=774709
-rw-r--r--libgd/gd-main-view.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/libgd/gd-main-view.h b/libgd/gd-main-view.h
index 1fcf6ac..1e015e1 100644
--- a/libgd/gd-main-view.h
+++ b/libgd/gd-main-view.h
@@ -29,29 +29,8 @@
G_BEGIN_DECLS
#define GD_TYPE_MAIN_VIEW gd_main_view_get_type()
+G_DECLARE_DERIVABLE_TYPE (GdMainView, gd_main_view, GD, MAIN_VIEW, GtkScrolledWindow)
-#define GD_MAIN_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GD_TYPE_MAIN_VIEW, GdMainView))
-
-#define GD_MAIN_VIEW_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- GD_TYPE_MAIN_VIEW, GdMainViewIface))
-
-#define GD_IS_MAIN_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GD_TYPE_MAIN_VIEW))
-
-#define GD_IS_MAIN_VIEW_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- GD_TYPE_MAIN_VIEW))
-
-#define GD_MAIN_VIEW_GET_IFACE(obj) \
- (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
- GD_TYPE_MAIN_VIEW, GdMainViewIface))
-
-typedef struct _GdMainView GdMainView;
-typedef struct _GdMainViewClass GdMainViewClass;
typedef struct _GdMainViewPrivate GdMainViewPrivate;
typedef enum {
@@ -59,16 +38,10 @@ typedef enum {
GD_MAIN_VIEW_LIST
} GdMainViewType;
-struct _GdMainView {
- GtkScrolledWindow parent;
-};
-
struct _GdMainViewClass {
GtkScrolledWindowClass parent_class;
};
-GType gd_main_view_get_type (void) G_GNUC_CONST;
-
GdMainView * gd_main_view_new (GdMainViewType type);
void gd_main_view_set_view_type (GdMainView *self,
GdMainViewType type);