Commit 3cac8b33 authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Søren Sandmann Pedersen

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.
parent 57e7f4a2
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
......
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
......
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
......
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
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment