Commit eaa77a47 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

We need to treat initial creation different from setting with regards to

Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
	to treat initial creation different from setting with
	regards to the graphics-exposures parameter, so add a parameter
	indicating whether this is initial or not.
parent eb34d193
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
to treat initial creation different from setting with
regards to the graphics-exposures parameter, so add a parameter
indicating whether this is initial or not.
Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
......
......@@ -10,7 +10,8 @@ typedef enum {
static void gdk_x11_gc_values_to_xvalues (GdkGCValues *values,
GdkGCValuesMask mask,
XGCValues *xvalues,
unsigned long *xvalues_mask);
unsigned long *xvalues_mask,
gboolean initial);
static void gdk_x11_gc_destroy (GdkGC *gc);
static void gdk_x11_gc_get_values (GdkGC *gc,
......@@ -72,7 +73,7 @@ _gdk_x11_gc_new (GdkDrawable *drawable,
xvalues.graphics_exposures = True;
xvalues_mask = GCFunction | GCFillStyle | GCArcMode | GCSubwindowMode | GCGraphicsExposures;
gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask, TRUE);
data->xgc = XCreateGC (GDK_GC_XDISPLAY (gc),
GDK_DRAWABLE_XID (drawable),
......@@ -311,7 +312,7 @@ gdk_x11_gc_set_values (GdkGC *gc,
}
}
gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask, FALSE);
XChangeGC (GDK_GC_XDISPLAY (gc),
GDK_GC_XGC (gc),
......@@ -336,7 +337,8 @@ static void
gdk_x11_gc_values_to_xvalues (GdkGCValues *values,
GdkGCValuesMask mask,
XGCValues *xvalues,
unsigned long *xvalues_mask)
unsigned long *xvalues_mask,
gboolean initial)
{
if (mask & GDK_GC_FOREGROUND)
{
......@@ -479,10 +481,15 @@ gdk_x11_gc_values_to_xvalues (GdkGCValues *values,
}
if (mask & GDK_GC_EXPOSURES)
xvalues->graphics_exposures = values->graphics_exposures;
else
xvalues->graphics_exposures = False;
*xvalues_mask |= GCGraphicsExposures;
{
xvalues->graphics_exposures = values->graphics_exposures;
*xvalues_mask |= GCGraphicsExposures;
}
else if (initial)
{
xvalues->graphics_exposures = False;
*xvalues_mask |= GCGraphicsExposures;
}
if (mask & GDK_GC_LINE_WIDTH)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment