[libgd/wip/rishi/modernize-gobject: 5/5] toggle-pixbuf-renderer: Don't export the private typedef



commit 194555847371ee9ffc3fdb6ef89ff64d0cd40818
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Oct 6 18:11:44 2018 +0200

    toggle-pixbuf-renderer: Don't export the private typedef
    
    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 GdTwoLinesRendererPrivate into the .c file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774709

 libgd/gd-toggle-pixbuf-renderer.c | 2 ++
 libgd/gd-toggle-pixbuf-renderer.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgd/gd-toggle-pixbuf-renderer.c b/libgd/gd-toggle-pixbuf-renderer.c
index 5d43d5e..069050b 100644
--- a/libgd/gd-toggle-pixbuf-renderer.c
+++ b/libgd/gd-toggle-pixbuf-renderer.c
@@ -30,6 +30,8 @@ enum {
 
 static GParamSpec *properties[NUM_PROPERTIES] = { NULL, };
 
+typedef struct _GdTogglePixbufRendererPrivate GdTogglePixbufRendererPrivate;
+
 struct _GdTogglePixbufRendererPrivate {
   gboolean active;
   gboolean toggle_visible;
diff --git a/libgd/gd-toggle-pixbuf-renderer.h b/libgd/gd-toggle-pixbuf-renderer.h
index 81abf7d..93f4429 100644
--- a/libgd/gd-toggle-pixbuf-renderer.h
+++ b/libgd/gd-toggle-pixbuf-renderer.h
@@ -35,8 +35,6 @@ G_DECLARE_DERIVABLE_TYPE (GdTogglePixbufRenderer,
                           TOGGLE_PIXBUF_RENDERER,
                           GtkCellRendererPixbuf)
 
-typedef struct _GdTogglePixbufRendererPrivate GdTogglePixbufRendererPrivate;
-
 struct _GdTogglePixbufRendererClass
 {
   GtkCellRendererPixbufClass parent_class;


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