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/gtkhscale.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/gtkhscale.c')
-rw-r--r-- | gtk/gtkhscale.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/gtkhscale.c b/gtk/gtkhscale.c index 537217bcb7..3d8df65d69 100644 --- a/gtk/gtkhscale.c +++ b/gtk/gtkhscale.c @@ -159,7 +159,13 @@ gtk_hscale_expose (GtkWidget *widget, range = GTK_RANGE (widget); scale = GTK_SCALE (widget); hscale = GTK_HSCALE (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; @@ -231,6 +237,6 @@ gtk_hscale_expose (GtkWidget *widget, g_object_unref (G_OBJECT (layout)); } - - return (* GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event); + + return FALSE; } |