Remove clip-region computing code. Just use &paned->handle_pos.

Sun Jul 11 01:38:48 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
	code. Just use &paned->handle_pos.
This commit is contained in:
Soeren Sandmann 2004-07-10 23:42:47 +00:00 committed by Søren Sandmann Pedersen
parent 57e7f4a27b
commit 3cac8b33fe
5 changed files with 35 additions and 28 deletions

View File

@ -1,3 +1,8 @@
Sun Jul 11 01:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
code. Just use &paned->handle_pos.
Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 144271 Bug 144271

View File

@ -1,3 +1,8 @@
Sun Jul 11 01:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
code. Just use &paned->handle_pos.
Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 144271 Bug 144271

View File

@ -1,3 +1,8 @@
Sun Jul 11 01:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
code. Just use &paned->handle_pos.
Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 144271 Bug 144271

View File

@ -1,3 +1,8 @@
Sun Jul 11 01:38:48 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.c (gtk_paned_expose): Remove clip-region computing
code. Just use &paned->handle_pos.
Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk> Sun Jul 11 01:12:50 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Bug 144271 Bug 144271

View File

@ -741,34 +741,21 @@ gtk_paned_expose (GtkWidget *widget,
paned->child1 && GTK_WIDGET_VISIBLE (paned->child1) && paned->child1 && GTK_WIDGET_VISIBLE (paned->child1) &&
paned->child2 && GTK_WIDGET_VISIBLE (paned->child2)) paned->child2 && GTK_WIDGET_VISIBLE (paned->child2))
{ {
GdkRegion *region; GtkStateType state;
region = gdk_region_rectangle (&paned->handle_pos); if (gtk_widget_is_focus (widget))
gdk_region_intersect (region, event->region); state = GTK_STATE_SELECTED;
else if (paned->handle_prelit)
if (!gdk_region_empty (region)) state = GTK_STATE_PRELIGHT;
{ else
GtkStateType state; state = GTK_WIDGET_STATE (widget);
GdkRectangle clip;
gtk_paint_handle (widget->style, widget->window,
gdk_region_get_clipbox (region, &clip); state, GTK_SHADOW_NONE,
&paned->handle_pos, widget, "paned",
if (gtk_widget_is_focus (widget)) paned->handle_pos.x, paned->handle_pos.y,
state = GTK_STATE_SELECTED; paned->handle_pos.width, paned->handle_pos.height,
else if (paned->handle_prelit) paned->orientation);
state = GTK_STATE_PRELIGHT;
else
state = GTK_WIDGET_STATE (widget);
gtk_paint_handle (widget->style, widget->window,
state, GTK_SHADOW_NONE,
&clip, widget, "paned",
paned->handle_pos.x, paned->handle_pos.y,
paned->handle_pos.width, paned->handle_pos.height,
paned->orientation);
}
gdk_region_destroy (region);
} }
/* Chain up to draw children */ /* Chain up to draw children */