[gtk+/picture: 1/17] stylecontext: Use the common approach for priate pointers
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/picture: 1/17] stylecontext: Use the common approach for priate pointers
- Date: Thu, 10 Feb 2011 13:55:33 +0000 (UTC)
commit 3a2ac97d62293c956fe57b1f43d60a1e97e960e9
Author: Benjamin Otte <otte redhat com>
Date: Wed Feb 9 14:40:04 2011 +0100
stylecontext: Use the common approach for priate pointers
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb
gtk/gtkstylecontext.c | 3 +--
gtk/gtkstylecontext.h | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index f005eb1..c64ada7 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 80d3488..2fad447 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]