[gtk/wip/baedert/some-api: 2/7] image: Remove private struct from public header



commit 817303a41e6aa272aada9eebcbb05129553d292a
Author: Timm Bäder <mail baedert org>
Date:   Fri Dec 21 09:14:20 2018 +0100

    image: Remove private struct from public header

 gtk/gtkimage.c | 4 ++--
 gtk/gtkimage.h | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 953a9051be..0dc39f427b 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -77,7 +77,7 @@
  */
 
 
-struct _GtkImagePrivate
+typedef struct
 {
   GtkIconHelper *icon_helper;
   GtkIconSize icon_size;
@@ -86,7 +86,7 @@ struct _GtkImagePrivate
 
   char *filename;
   char *resource_path;
-};
+} GtkImagePrivate;
 
 
 static void gtk_image_snapshot             (GtkWidget    *widget,
diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h
index eb98055655..87f47bb7be 100644
--- a/gtk/gtkimage.h
+++ b/gtk/gtkimage.h
@@ -45,7 +45,6 @@ G_BEGIN_DECLS
 
 
 typedef struct _GtkImage              GtkImage;
-typedef struct _GtkImagePrivate       GtkImagePrivate;
 typedef struct _GtkImageClass         GtkImageClass;
 
 /**


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