diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-27 00:37:35 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-27 00:37:35 +0000 |
commit | 2b33da526b6cfd458f90bb6e2b8d5411c2a62a8b (patch) | |
tree | da47dc4e3a27b15f459207ec8de15025d4bcd243 /gtk/gtkvscale.c | |
parent | fad2f1f37fe3294ba3824933b63053d730db4d20 (diff) | |
download | gtk+-2b33da526b6cfd458f90bb6e2b8d5411c2a62a8b.tar.gz |
Chain up before drawing the scale values so that the number is drawn in
Tue Feb 26 19:32:42 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtk[hv]vscale.c (gtk_[hv]scale_expose): Chain
up before drawing the scale values so that the number
is drawn in the right place instead of one step
back. (#61743, patch from Satyajit Kanungo)
Diffstat (limited to 'gtk/gtkvscale.c')
-rw-r--r-- | gtk/gtkvscale.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkvscale.c b/gtk/gtkvscale.c index 775f670236..9fa56f76ef 100644 --- a/gtk/gtkvscale.c +++ b/gtk/gtkvscale.c @@ -162,6 +162,12 @@ gtk_vscale_expose (GtkWidget *widget, scale = GTK_SCALE (widget); vscale = GTK_VSCALE (widget); + /* We need to chain up _first_ so the various geometry members of + * GtkRange struct are updated. + */ + if (GTK_WIDGET_CLASS (parent_class)->expose_event) + GTK_WIDGET_CLASS (parent_class)->expose_event (widget, event); + if (scale->draw_value) { PangoLayout *layout; @@ -232,5 +238,5 @@ gtk_vscale_expose (GtkWidget *widget, g_object_unref (G_OBJECT (layout)); } - return (* GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event); + return FALSE; } |