Mercurial > gftp.yaz
diff src/gtk/delete_dialog.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 | 3b2dcdefc7e9 |
children | c8ec7877432e |
line wrap: on
line diff
--- a/src/gtk/delete_dialog.c Sat Sep 28 17:32:23 2002 +0000 +++ b/src/gtk/delete_dialog.c Thu Oct 03 12:05:54 2002 +0000 @@ -81,7 +81,11 @@ timeout_num = gtk_timeout_add (100, progress_timeout, transfer); while (transfer->fromreq->stopable) - g_main_iteration (TRUE); + { + gdk_threads_leave (); + g_main_iteration (TRUE); + gdk_threads_enter (); + } gtk_widget_set_sensitive (stop_btn, 0); gtk_timeout_remove (timeout_num); @@ -146,7 +150,11 @@ pthread_create (&wdata->tid, NULL, do_delete_thread, transfer); while (transfer->fromreq->stopable) - g_main_iteration (TRUE); + { + gdk_threads_leave (); + g_main_iteration (TRUE); + gdk_threads_enter (); + } gtk_widget_set_sensitive (stop_btn, 0); pthread_join (wdata->tid, &ret);