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>
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>
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>
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>
Bug 144271

View File

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