From b613a74cb20a480f9d95579243278660af300cee Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Wed, 18 Jul 2001 22:43:41 +0000 Subject: Fix idles and timeouts to be properly surrounded by Wed Jul 18 18:23:05 2001 Owen Taylor * 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) --- gtk/gtkdialog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkdialog.c') diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 4dba60f1b5..3a3c49bc97 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -878,7 +878,9 @@ gtk_dialog_run (GtkDialog *dialog) ri.loop = g_main_new (FALSE); + GDK_THREADS_LEAVE (); g_main_loop_run (ri.loop); + GDK_THREADS_ENTER (); g_main_loop_unref (ri.loop); -- cgit v1.2.1