diff options
author | Debarshi Ray <debarshir@gnome.org> | 2016-11-19 12:05:09 +0100 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2016-11-21 15:33:07 +0100 |
commit | 1e49478e4269f0ddb8ebccfd774e94c48402e12c (patch) | |
tree | b2a26cc0320120652253d0a105b11adefa719c93 | |
parent | da93327e76ab36bc131630067340baac70667f7d (diff) | |
download | libgd-1e49478e4269f0ddb8ebccfd774e94c48402e12c.tar.gz |
main-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 GdMainViewPrivate into the .c file.
https://bugzilla.gnome.org/show_bug.cgi?id=774709
-rw-r--r-- | libgd/gd-main-view.c | 2 | ||||
-rw-r--r-- | libgd/gd-main-view.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libgd/gd-main-view.c b/libgd/gd-main-view.c index a546c73..fe42217 100644 --- a/libgd/gd-main-view.c +++ b/libgd/gd-main-view.c @@ -31,6 +31,8 @@ #define MAIN_VIEW_DND_ICON_OFFSET 20 #define MAIN_VIEW_RUBBERBAND_SELECT_TRIGGER_LENGTH 32 +typedef struct _GdMainViewPrivate GdMainViewPrivate; + struct _GdMainViewPrivate { GdMainViewType current_type; gboolean selection_mode; diff --git a/libgd/gd-main-view.h b/libgd/gd-main-view.h index 1e015e1..4f8afe7 100644 --- a/libgd/gd-main-view.h +++ b/libgd/gd-main-view.h @@ -31,8 +31,6 @@ 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) -typedef struct _GdMainViewPrivate GdMainViewPrivate; - typedef enum { GD_MAIN_VIEW_ICON, GD_MAIN_VIEW_LIST |