summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-07-18 22:43:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-07-18 22:43:41 +0000
commitb613a74cb20a480f9d95579243278660af300cee (patch)
tree47e7d815d87e40af35640ef13fb494282518f53c /gtk/gtkbutton.c
parentf500db339a6db572819663947933396cf79c3534 (diff)
downloadgtk+-b613a74cb20a480f9d95579243278660af300cee.tar.gz
Fix idles and timeouts to be properly surrounded by
Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c gtktreeview.c: Fix idles and timeouts to be properly surrounded by GDK_THREADS_ENTER()/LEAVE() pairs. * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER() pairs. (Problem found by M. Meeks)
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 69dc58390a..5ca6bad1fc 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1033,8 +1033,12 @@ gtk_real_button_leave (GtkButton *button)
static gboolean
button_activate_timeout (gpointer data)
{
+ GDK_THREADS_ENTER ();
+
gtk_button_finish_activate (data, TRUE);
+ GDK_THREADS_LEAVE ();
+
return FALSE;
}