diff options
author | Owen Taylor <otaylor@src.gnome.org> | 1998-11-06 22:05:02 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-11-06 22:05:02 +0000 |
commit | e2a521922085c8010028e227f61bba59ea6b8242 (patch) | |
tree | 2500d6aa6f63aab4b58c17546532ecce8fdcca37 /gtk/gtkhpaned.c | |
parent | 3c0df19a588bd96f328bda975db8eb9fa7f79e81 (diff) | |
download | gdk-pixbuf-e2a521922085c8010028e227f61bba59ea6b8242.tar.gz |
Merge from themes-2. See the ChangeLog for a somewhat detailed
history of the evolution of the changes involved. Most of this
is actually minor painting tweaks.
Diffstat (limited to 'gtk/gtkhpaned.c')
-rw-r--r-- | gtk/gtkhpaned.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index e828de2b3..4312575f8 100644 --- a/gtk/gtkhpaned.c +++ b/gtk/gtkhpaned.c @@ -229,6 +229,8 @@ gtk_hpaned_draw (GtkWidget *widget, paned = GTK_PANED (widget); border_width = GTK_CONTAINER (paned)->border_width; + gdk_window_clear_area (widget->window, + area->x, area->y, area->width, area->height); if (paned->child1 && gtk_widget_intersect (paned->child1, area, &child_area)) gtk_widget_draw (paned->child1, &child_area); @@ -236,18 +238,10 @@ gtk_hpaned_draw (GtkWidget *widget, gtk_widget_intersect (paned->child2, area, &child_area)) gtk_widget_draw (paned->child2, &child_area); - gdk_draw_line (widget->window, - widget->style->dark_gc[widget->state], - border_width + paned->child1_size + paned->gutter_size / 2 - 1, - 0, - border_width + paned->child1_size + paned->gutter_size / 2 - 1, - widget->allocation.height - 1); - gdk_draw_line (widget->window, - widget->style->light_gc[widget->state], - border_width + paned->child1_size + paned->gutter_size / 2, - 0, - border_width + paned->child1_size + paned->gutter_size / 2, - widget->allocation.height - 1); + gtk_paint_vline(widget->style, widget->window, GTK_STATE_NORMAL, + area, widget, "hpaned", + 0, widget->allocation.height - 1, + border_width + paned->child1_size + paned->gutter_size / 2 - 1); } } |