[libgd/wip/rishi/modernize-gobject: 4/4] toggle-pixbuf-renderer: Don't export the private typedef
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/wip/rishi/modernize-gobject: 4/4] toggle-pixbuf-renderer: Don't export the private typedef
- Date: Sat, 6 Oct 2018 16:19:31 +0000 (UTC)
commit 915bc270fdf24ea099f851bd5e759a2fe6e6f382
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]