Properly handle gc->clip_region == NULL>

Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
	gc->clip_region == NULL>
This commit is contained in:
Owen Taylor 2000-12-01 04:05:47 +00:00 committed by Owen Taylor
parent c396e4bb05
commit 1f7d7453b1
8 changed files with 46 additions and 8 deletions

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -1,3 +1,8 @@
Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
gc->clip_region == NULL>
2000-11-30 Tor Lillqvist <tml@iki.fi> 2000-11-30 Tor Lillqvist <tml@iki.fi>
Changes by Hans Breuer: Changes by Hans Breuer:
@ -6157,7 +6162,7 @@ Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
- completion on files in home directory didn't work - completion on files in home directory didn't work
- completion on an empty string caused segfault - completion on an empty string caused segfault
(Bug #3768, reported by Steve Ratcliffe) (Bug #3678, reported by Steve Ratcliffe)
* gtk/gtkscale.c (gtk_scale_get_value_width): Fix * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
cut and paste error that was causing scales to cut and paste error that was causing scales to

View File

@ -711,7 +711,10 @@ gdk_gc_copy (GdkGC *dst_gc, GdkGC *src_gc)
if (x11_dst_gc->clip_region) if (x11_dst_gc->clip_region)
gdk_region_destroy (x11_dst_gc->clip_region); gdk_region_destroy (x11_dst_gc->clip_region);
x11_dst_gc->clip_region = gdk_region_copy (x11_src_gc->clip_region); if (x11_src_gc->clip_region)
x11_dst_gc->clip_region = gdk_region_copy (x11_src_gc->clip_region);
else
x11_dst_gc->clip_region = NULL;
x11_dst_gc->dirty_mask = x11_src_gc->dirty_mask; x11_dst_gc->dirty_mask = x11_src_gc->dirty_mask;
} }