diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2004-07-10 23:42:47 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-07-10 23:42:47 +0000 |
commit | 3cac8b33fea01dbde72bfa21aeddc1c1d714cb25 (patch) | |
tree | 2bcf29ae67eee6b51ed2a4508797a245f24b9788 /gtk/gtkpaned.c | |
parent | 57e7f4a27b8c27aa3f959910c3005d11e81c6ed7 (diff) | |
download | gdk-pixbuf-3cac8b33fea01dbde72bfa21aeddc1c1d714cb25.tar.gz |
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.
Diffstat (limited to 'gtk/gtkpaned.c')
-rw-r--r-- | gtk/gtkpaned.c | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 618ecb171..e9b79ef05 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -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 */ |