Fix so children don't get bogus draws.

Sun Mar 22 21:00:43 1998  Owen Taylor  <owt1@cornell.edu>

	* gtk/gtkpaned.c: Fix so children don't get bogus draws.
This commit is contained in:
Owen Taylor 1998-03-23 03:48:45 +00:00 committed by Owen Taylor
parent 6b411f4b47
commit 03a7c4551b
8 changed files with 31 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -1,3 +1,7 @@
Sun Mar 22 21:00:43 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkpaned.c: Fix so children don't get bogus draws.
Mon Mar 23 01:08:30 1998 Tim Janik <timj@gtk.org>
* gtk/gtkclist.c (gtk_clist_class_init): leave container_class->add and

View File

@ -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);
}
}