summaryrefslogtreecommitdiff
path: root/gtk/gtkruler.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/gtkruler.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/gtkruler.c')
-rw-r--r--gtk/gtkruler.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c
index c43d7ed9d7..2b25500f04 100644
--- a/gtk/gtkruler.c
+++ b/gtk/gtkruler.c
@@ -249,26 +249,20 @@ gtk_ruler_expose (GtkWidget *widget,
{
ruler = GTK_RULER (widget);
- gdk_draw_rectangle (ruler->backing_store,
- widget->style->bg_gc[GTK_STATE_NORMAL],
- TRUE, 0, 0,
- widget->allocation.width,
- widget->allocation.height);
-
+ gtk_paint_box (widget->style, widget->window,
+ GTK_STATE_NORMAL, GTK_SHADOW_OUT,
+ NULL, widget, "ruler",
+ 0, 0, -1, -1);
+
gtk_ruler_draw_ticks (ruler);
-
- gtk_draw_shadow (widget->style, ruler->backing_store,
- GTK_STATE_NORMAL, GTK_SHADOW_OUT, 0, 0,
- widget->allocation.width,
- widget->allocation.height);
-
+
gdk_draw_pixmap (widget->window,
ruler->non_gr_exp_gc,
ruler->backing_store,
0, 0, 0, 0,
widget->allocation.width,
widget->allocation.height);
-
+
gtk_ruler_draw_pos (ruler);
}