[gtk/wip/baedert/box2: 1/21] image: Remove private struct from public header
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/box2: 1/21] image: Remove private struct from public header
- Date: Sun, 30 Dec 2018 13:06:04 +0000 (UTC)
commit f4ab75b8d3d47d429d8b84942001c8289ff9b100
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 | 9 ++++-----
gtk/gtkimage.h | 1 -
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 5aa0ea5cb9..8acceb12e9 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -77,17 +77,16 @@
*/
-struct _GtkImagePrivate
+typedef struct
{
GtkIconHelper *icon_helper;
GtkIconSize icon_size;
float baseline_align;
- gchar *filename; /* Only used with GTK_IMAGE_SURFACE */
- gchar *resource_path; /* Only used with GTK_IMAGE_SURFACE */
-};
-
+ char *filename;
+ char *resource_path;
+} GtkImagePrivate;
static void gtk_image_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot);
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]