[gtk+] stylecontext: Use the common approach for priate pointers
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+] stylecontext: Use the common approach for priate pointers
- Date: Sat, 12 Feb 2011 00:31:11 +0000 (UTC)
commit ccc3679a6221f99e85648ec05e818a4437f911f5
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]