[libgd] main-view: Don't export the typedef for the private structure



commit 1e49478e4269f0ddb8ebccfd774e94c48402e12c
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Nov 19 12:05:09 2016 +0100

    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

 libgd/gd-main-view.c |    2 ++
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]