[gtk+/client-side-windows] Add _gdk_gc_get_exposures
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows] Add _gdk_gc_get_exposures
- Date: Wed, 27 May 2009 15:48:31 -0400 (EDT)
commit 44c7264bc7e75c580526324e2ce5ec9876e2933a
Author: Alexander Larsson <alexl redhat com>
Date: Wed May 27 17:06:46 2009 +0200
Add _gdk_gc_get_exposures
---
gdk/gdkgc.c | 28 ++++++++++++++++++++++------
gdk/gdkinternals.h | 1 +
2 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index f3ac968..78967ff 100644
--- a/gdk/gdkgc.c
+++ b/gdk/gdkgc.c
@@ -46,20 +46,21 @@ struct _GdkGCPrivate
guint32 region_tag_applied;
int region_tag_offset_x;
int region_tag_offset_y;
-
+
GdkRegion *old_clip_region;
GdkPixmap *old_clip_mask;
-
- GdkSubwindowMode subwindow_mode;
-
- GdkFill fill;
+
GdkBitmap *stipple;
GdkPixmap *tile;
GdkPixmap *clip_mask;
-
+
guint32 fg_pixel;
guint32 bg_pixel;
+
+ guint subwindow_mode : 1;
+ guint fill : 2;
+ guint exposures : 2;
};
#define GDK_GC_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GDK_TYPE_GC, GdkGCPrivate))
@@ -187,6 +188,10 @@ _gdk_gc_init (GdkGC *gc,
priv->bg_pixel = values->background.pixel;
if (values_mask & GDK_GC_SUBWINDOW)
priv->subwindow_mode = values->subwindow_mode;
+ if (values_mask & GDK_GC_EXPOSURES)
+ priv->exposures = values->graphics_exposures;
+ else
+ priv->exposures = TRUE;
gc->colormap = gdk_drawable_get_colormap (drawable);
if (gc->colormap)
@@ -350,6 +355,8 @@ gdk_gc_set_values (GdkGC *gc,
priv->bg_pixel = values->background.pixel;
if (values_mask & GDK_GC_SUBWINDOW)
priv->subwindow_mode = values->subwindow_mode;
+ if (values_mask & GDK_GC_EXPOSURES)
+ priv->exposures = values->graphics_exposures;
GDK_GC_GET_CLASS (gc)->set_values (gc, values, values_mask);
}
@@ -784,6 +791,14 @@ _gdk_gc_get_fill (GdkGC *gc)
return GDK_GC_GET_PRIVATE (gc)->fill;
}
+gboolean
+_gdk_gc_get_exposures (GdkGC *gc)
+{
+ g_return_val_if_fail (GDK_IS_GC (gc), FALSE);
+
+ return GDK_GC_GET_PRIVATE (gc)->exposures;
+}
+
/**
* _gdk_gc_get_tile:
* @gc: a #GdkGC
@@ -1086,6 +1101,7 @@ gdk_gc_copy (GdkGC *dst_gc,
dst_priv->fg_pixel = src_priv->fg_pixel;
dst_priv->bg_pixel = src_priv->bg_pixel;
dst_priv->subwindow_mode = src_priv->subwindow_mode;
+ dst_priv->exposures = src_priv->exposures;
}
/**
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 9191cf9..94cce6a 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -395,6 +395,7 @@ void _gdk_gc_init (GdkGC *gc,
GdkGCValuesMask values_mask);
GdkRegion *_gdk_gc_get_clip_region (GdkGC *gc);
+gboolean _gdk_gc_get_exposures (GdkGC *gc);
GdkFill _gdk_gc_get_fill (GdkGC *gc);
GdkPixmap *_gdk_gc_get_tile (GdkGC *gc);
GdkBitmap *_gdk_gc_get_stipple (GdkGC *gc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]