summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2018-08-17 14:47:13 +0200
committerDebarshi Ray <debarshir@gnome.org>2018-08-17 14:49:05 +0200
commit91dc8348d860d1ef6b118286e71e2c46a81f41bb (patch)
tree17e1f454c2fabfa0e8de37f451c58ff73768d7ab
parent1bea906dd78f4736ab0857e8cbbe9a9e9cbd61e7 (diff)
downloadlibgd-91dc8348d860d1ef6b118286e71e2c46a81f41bb.tar.gz
main-icon-view: Don't export the typedef for the private structure
We no longer have a priv pointer inside the struct, and G_DECLARE_DERIVABLE_TYPE has removed the need for the instance and class typedefs. Therefore, this is a good time to clean up the header and move the typedef for GdMainIconViewPrivate into the .c file. https://bugzilla.gnome.org/show_bug.cgi?id=774709
-rw-r--r--libgd/gd-main-icon-view.c2
-rw-r--r--libgd/gd-main-icon-view.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgd/gd-main-icon-view.c b/libgd/gd-main-icon-view.c
index 1f048dc..699d20d 100644
--- a/libgd/gd-main-icon-view.c
+++ b/libgd/gd-main-icon-view.c
@@ -33,6 +33,8 @@
#define VIEW_COLUMN_SPACING 20
#define VIEW_MARGIN 16
+typedef struct _GdMainIconViewPrivate GdMainIconViewPrivate;
+
struct _GdMainIconViewPrivate {
GtkCellRenderer *pixbuf_cell;
GtkCellRenderer *text_cell;
diff --git a/libgd/gd-main-icon-view.h b/libgd/gd-main-icon-view.h
index 174c838..c93e279 100644
--- a/libgd/gd-main-icon-view.h
+++ b/libgd/gd-main-icon-view.h
@@ -30,8 +30,6 @@ 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)
-typedef struct _GdMainIconViewPrivate GdMainIconViewPrivate;
-
struct _GdMainIconViewClass
{
GtkIconViewClass parent_class;