diff options
Diffstat (limited to 'gtk/gtkhruler.c')
-rw-r--r-- | gtk/gtkhruler.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtkhruler.c b/gtk/gtkhruler.c index 0a8b6307c..40af24711 100644 --- a/gtk/gtkhruler.c +++ b/gtk/gtkhruler.c @@ -162,7 +162,15 @@ gtk_hruler_draw_ticks (GtkRuler *ruler) width = widget->allocation.width; height = widget->allocation.height - ythickness * 2; - gdk_draw_line (ruler->backing_store, gc, + + gtk_paint_box (widget->style, ruler->backing_store, + GTK_STATE_NORMAL, GTK_SHADOW_OUT, + NULL, widget, "hruler", + 0, 0, + widget->allocation.width, widget->allocation.height); + + + gdk_draw_line (ruler->backing_store, gc, xthickness, height + ythickness, widget->allocation.width - xthickness, @@ -231,11 +239,6 @@ gtk_hruler_draw_ticks (GtkRuler *ruler) if (i == 0) { sprintf (unit_str, "%d", (int) cur); - gdk_draw_rectangle (ruler->backing_store, - bg_gc, TRUE, - pos + 1, ythickness, - gdk_string_width(font, unit_str) + 1, - digit_height); gdk_draw_string (ruler->backing_store, font, gc, pos + 2, ythickness + font->ascent - 1, unit_str); |