diff options
author | Benjamin Otte <otte@redhat.com> | 2011-02-09 14:40:04 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-02-11 23:21:11 +0100 |
commit | ccc3679a6221f99e85648ec05e818a4437f911f5 (patch) | |
tree | 9479fb32e8bcb1fc522d28092a23473be2c46757 | |
parent | 0bd0854d4d48695a671a1e12f36b77ef9e3ed23f (diff) | |
download | gtk+-ccc3679a6221f99e85648ec05e818a4437f911f5.tar.gz |
stylecontext: Use the common approach for priate pointers
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb
-rw-r--r-- | gtk/gtkstylecontext.c | 3 | ||||
-rw-r--r-- | gtk/gtkstylecontext.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index f005eb15fd..c64ada7a6b 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -406,7 +406,6 @@ * </refsect2> */ -typedef struct GtkStyleContextPrivate GtkStyleContextPrivate; typedef struct GtkStyleProviderData GtkStyleProviderData; typedef struct GtkStyleInfo GtkStyleInfo; typedef struct GtkRegion GtkRegion; @@ -468,7 +467,7 @@ struct AnimationInfo GArray *rectangles; }; -struct GtkStyleContextPrivate +struct _GtkStyleContextPrivate { GdkScreen *screen; diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 80d3488480..2fad447bd5 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -40,11 +40,12 @@ G_BEGIN_DECLS typedef struct _GtkStyleContext GtkStyleContext; typedef struct _GtkStyleContextClass GtkStyleContextClass; +typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate; struct _GtkStyleContext { GObject parent_object; - gpointer priv; + GtkStyleContextPrivate *priv; }; struct _GtkStyleContextClass |