summaryrefslogtreecommitdiff
path: root/gtk/gtkvruler.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>1998-11-06 22:05:02 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-11-06 22:05:02 +0000
commite2a521922085c8010028e227f61bba59ea6b8242 (patch)
tree2500d6aa6f63aab4b58c17546532ecce8fdcca37 /gtk/gtkvruler.c
parent3c0df19a588bd96f328bda975db8eb9fa7f79e81 (diff)
downloadgtk+-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/gtkvruler.c')
-rw-r--r--gtk/gtkvruler.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkvruler.c b/gtk/gtkvruler.c
index f19e5eab29..3da583548d 100644
--- a/gtk/gtkvruler.c
+++ b/gtk/gtkvruler.c
@@ -162,7 +162,13 @@ gtk_vruler_draw_ticks (GtkRuler *ruler)
width = widget->allocation.height;
height = widget->allocation.width - 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, "vruler",
+ 0, 0,
+ widget->allocation.width, widget->allocation.height);
+
+ gdk_draw_line (ruler->backing_store, gc,
height + xthickness,
ythickness,
height + xthickness,
@@ -234,12 +240,6 @@ gtk_vruler_draw_ticks (GtkRuler *ruler)
for (j = 0; j < (int) strlen (unit_str); j++)
{
digit_str[0] = unit_str[j];
- gdk_draw_rectangle (ruler->backing_store,
- bg_gc, TRUE,
- xthickness + 1,
- pos + digit_height * j + 1,
- gdk_string_width(font, digit_str),
- digit_height);
gdk_draw_string (ruler->backing_store, font, gc,
xthickness + 1,
pos + digit_height * (j + 1) + 1,