summaryrefslogtreecommitdiff
path: root/gtk/gtkvpaned.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r--gtk/gtkvpaned.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index 32bebd5f40..55cd2b9bf4 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -229,6 +229,8 @@ gtk_vpaned_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_vpaned_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],
- 0,
- border_width + paned->child1_size + paned->gutter_size / 2 - 1,
- widget->allocation.width - 1,
- border_width + paned->child1_size + paned->gutter_size / 2 - 1);
- gdk_draw_line (widget->window,
- widget->style->light_gc[widget->state],
- 0,
- border_width + paned->child1_size + paned->gutter_size / 2,
- widget->allocation.width - 1,
- border_width + paned->child1_size + paned->gutter_size / 2);
+ gtk_paint_hline(widget->style, widget->window, GTK_STATE_NORMAL,
+ area, widget, "vpaned",
+ 0, widget->allocation.width - 1,
+ border_width + paned->child1_size + paned->gutter_size / 2 - 1);
}
}