diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-29 16:40:48 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:11:33 +0200 |
commit | 47ee99619806ccee5dd3d1d709e1f2032ea92442 (patch) | |
tree | 97f4624919396863fa0a59b8933dc3d3dd9d3b5c /gdk/gdkvisual.h | |
parent | 571e749d60aaef991dcf8cad50d1cfeb4f9fdd12 (diff) | |
download | gtk+-47ee99619806ccee5dd3d1d709e1f2032ea92442.tar.gz |
x11: Use G_DEFINE_TYPE() to define GdkVisual
Also add a priv pointer to GdkVisual and use it for the GdkVisualPrivate
structure. Then Make GdkVisualPrivate actually private to
gdkvisual-x11.c and make other callers use proper function calls to
access it.
Diffstat (limited to 'gdk/gdkvisual.h')
-rw-r--r-- | gdk/gdkvisual.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkvisual.h b/gdk/gdkvisual.h index 885dbaa163..95fb441bf5 100644 --- a/gdk/gdkvisual.h +++ b/gdk/gdkvisual.h @@ -42,6 +42,7 @@ G_BEGIN_DECLS #define GDK_IS_VISUAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_VISUAL)) #define GDK_VISUAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_VISUAL, GdkVisualClass)) +typedef struct _GdkVisualPrivate GdkVisualPrivate; typedef struct _GdkVisualClass GdkVisualClass; /* Types of visuals. @@ -95,6 +96,8 @@ struct _GdkVisual guint32 GSEAL (blue_mask); gint GSEAL (blue_shift); gint GSEAL (blue_prec); + + GdkVisualPrivate *priv; }; GType gdk_visual_get_type (void) G_GNUC_CONST; |