From 03a7c4551bd17b8830fc567fa3421a738d56528b Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 23 Mar 1998 03:48:45 +0000 Subject: [PATCH] Fix so children don't get bogus draws. Sun Mar 22 21:00:43 1998 Owen Taylor * gtk/gtkpaned.c: Fix so children don't get bogus draws. --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gtk/gtkpaned.c | 5 +++-- 8 files changed, 31 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 792e2ac0fe..b08bfcba61 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Sun Mar 22 21:00:43 1998 Owen Taylor + + * gtk/gtkpaned.c: Fix so children don't get bogus draws. + Mon Mar 23 01:08:30 1998 Tim Janik * gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index b9b32ae9d6..59231e1be7 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -260,8 +260,9 @@ gtk_paned_expose (GtkWidget *widget, gtk_widget_event (paned->child2, (GdkEvent*) &child_event); /* redraw the groove if necessary */ - child_event.area = paned->groove_rectangle; - if (gtk_widget_intersect (widget, &event->area, &child_event.area)) + if (gdk_rectangle_intersect (&paned->groove_rectangle, + &event->area, + &child_event.area)) gtk_widget_draw (widget, &child_event.area); } }