summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-04-05 23:30:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-04-05 23:30:26 +0000
commit20fee708a3119689431488877d7a18662b875747 (patch)
tree4634d87193e1bc3282a81f20f4bfd16dc94f8785 /gtk/gtkbutton.c
parent1a099c2ced994d8cfb4f1c047cd3fcf4b16519b6 (diff)
downloadgtk+-20fee708a3119689431488877d7a18662b875747.tar.gz
Fixed assignment of adjustment->value to negative values. Moved a few
Sun Apr 5 19:30:23 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkclist.c: Fixed assignment of adjustment->value to negative values. Moved a few other allocation type things around in ways that may or may matter. Fixed some allocation errors (scrollbars were overlapping main window). * gtk/gtkbutton.c (gtk_real_button_released): Small hack to keep button labels from vanishing when the invoked operation blocks. * gtk/gtkbox.c (gtk_box_remove): Assigning GTK_WIDGET_VISIBLE (widget) to a gboolean (char) is _bad_. GTK_VISIBLE == 256.
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index bdb64bdc77..5ded0987b8 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -881,7 +881,10 @@ gtk_real_button_released (GtkButton *button)
if (GTK_WIDGET_STATE (button) != new_state)
{
gtk_widget_set_state (GTK_WIDGET (button), new_state);
- gtk_widget_queue_draw (GTK_WIDGET (button));
+ /* We _draw () instead of queue_draw so that if the operation
+ * blocks, the label doesn't vanish.
+ */
+ gtk_widget_draw (GTK_WIDGET (button), NULL);
}
}
}