Mercurial > gftp.yaz
diff src/gtk/misc-gtk.c @ 31:d930e06af9ae
2002-10-03 Brian Masney <masneyb@gftp.org>
* src/gtk/gftp-gtk.c - call g_thread_init (NULL)
* src/gtk/delete_dialog.c, src/gtk/misc-gtk.c, src/gtk/transfer.c -
call gdk_threads_enter() and gdk_threads_leave()
author | masneyb |
---|---|
date | Thu, 03 Oct 2002 12:05:54 +0000 |
parents | 4b244bf9d84d |
children | c8ec7877432e |
line wrap: on
line diff
--- a/src/gtk/misc-gtk.c Sat Sep 28 17:32:23 2002 +0000 +++ b/src/gtk/misc-gtk.c Thu Oct 03 12:05:54 2002 +0000 @@ -34,7 +34,15 @@ void fix_display (void) { - while (g_main_iteration (FALSE)); + int ret; + + ret = 1; + while (ret) + { + gdk_threads_leave (); + ret = g_main_iteration (FALSE); + gdk_threads_enter (); + } } @@ -1124,7 +1132,11 @@ pthread_create (&wdata->tid, NULL, func, wdata); while (wdata->request->stopable) - g_main_iteration (TRUE); + { + gdk_threads_leave (); + g_main_iteration (TRUE); + gdk_threads_enter (); + } pthread_join (wdata->tid, &ret); gtk_widget_set_sensitive (stop_btn, 0);