summaryrefslogtreecommitdiff
path: root/gtk/gtkhruler.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/gtkhruler.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/gtkhruler.c')
-rw-r--r--gtk/gtkhruler.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtkhruler.c b/gtk/gtkhruler.c
index 0a8b6307c5..40af247119 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);