summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2018-08-17 14:45:39 +0200
committerDebarshi Ray <debarshir@gnome.org>2018-08-17 14:49:05 +0200
commit1bea906dd78f4736ab0857e8cbbe9a9e9cbd61e7 (patch)
tree7e7083e32fc320aa5ac85b8474c8776ce3aa2404
parentad398275f3f64cd0e7d335a44ef048fcd1d8f4db (diff)
downloadlibgd-1bea906dd78f4736ab0857e8cbbe9a9e9cbd61e7.tar.gz
main-icon-view: Use G_DECLARE_DERIVABLE_TYPE
https://bugzilla.gnome.org/show_bug.cgi?id=774709
-rw-r--r--libgd/gd-main-icon-view.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/libgd/gd-main-icon-view.h b/libgd/gd-main-icon-view.h
index c2d1c22..174c838 100644
--- a/libgd/gd-main-icon-view.h
+++ b/libgd/gd-main-icon-view.h
@@ -28,43 +28,15 @@
G_BEGIN_DECLS
#define GD_TYPE_MAIN_ICON_VIEW gd_main_icon_view_get_type()
+G_DECLARE_DERIVABLE_TYPE (GdMainIconView, gd_main_icon_view, GD, MAIN_ICON_VIEW, GtkIconView)
-#define GD_MAIN_ICON_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GD_TYPE_MAIN_ICON_VIEW, GdMainIconView))
-
-#define GD_MAIN_ICON_VIEW_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- GD_TYPE_MAIN_ICON_VIEW, GdMainIconViewClass))
-
-#define GD_IS_MAIN_ICON_VIEW(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GD_TYPE_MAIN_ICON_VIEW))
-
-#define GD_IS_MAIN_ICON_VIEW_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- GD_TYPE_MAIN_ICON_VIEW))
-
-#define GD_MAIN_ICON_VIEW_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- GD_TYPE_MAIN_ICON_VIEW, GdMainIconViewClass))
-
-typedef struct _GdMainIconView GdMainIconView;
-typedef struct _GdMainIconViewClass GdMainIconViewClass;
typedef struct _GdMainIconViewPrivate GdMainIconViewPrivate;
-struct _GdMainIconView
-{
- GtkIconView parent;
-};
-
struct _GdMainIconViewClass
{
GtkIconViewClass parent_class;
};
-GType gd_main_icon_view_get_type (void) G_GNUC_CONST;
-
GtkWidget * gd_main_icon_view_new (void);
G_END_DECLS