Mercurial > gftp.yaz
diff src/gtk/transfer.c @ 41:4bcfaf6307b5
2002-10-29 Brian Masney <masneyb@gftp.org>
* lib/config_file.c lib/gftp.h lib/options.h src/gtk/menu-items.c
src/gtk/view_dialog.c - removed tmp_directory variable. Instead use
g_get_tmp_dir ()
* lib/gftp.h (struct gftp_request) - added int cancel : 1
* lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/ssh.c
lib/sshv2.c - check for interrupted signal calls
* lib/protocols.c - added gftp_fgets() and gftp_fwrite() functions
* src/gtk/delete_dialog.c src/gtk/misc-gtk.c src/gtk/transfer.c - use
g_main_context_iteration in GTK+ 2.0 port
* src/gtk/misc-gtk.c - use g_object_unref instead of gdk_drawable_unref
in GTK+ 2.0 port
author | masneyb |
---|---|
date | Wed, 30 Oct 2002 02:53:21 +0000 |
parents | 66c064fd05bc |
children | cd169e4789df |
line wrap: on
line diff
--- a/src/gtk/transfer.c Fri Oct 18 02:53:52 2002 +0000 +++ b/src/gtk/transfer.c Wed Oct 30 02:53:21 2002 +0000 @@ -91,7 +91,11 @@ while (wdata->request->stopable) { GDK_THREADS_LEAVE (); +#if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 g_main_iteration (TRUE); +#else + g_main_context_iteration (NULL, TRUE); +#endif } teardown_wakeup_main_thread (wdata->request, handler); @@ -263,7 +267,11 @@ while (request->stopable) { GDK_THREADS_LEAVE (); +#if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 g_main_iteration (TRUE); +#else + g_main_context_iteration (NULL, TRUE); +#endif } if (GFTP_GET_PASSWORD (request) == NULL || @@ -286,7 +294,11 @@ while (request->stopable) { GDK_THREADS_LEAVE (); +#if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 g_main_iteration (TRUE); +#else + g_main_context_iteration (NULL, TRUE); +#endif } pthread_join (wdata->tid, &ret); teardown_wakeup_main_thread (wdata->request, handler); @@ -451,7 +463,11 @@ while (transfer->fromreq->stopable) { GDK_THREADS_LEAVE (); +#if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 g_main_iteration (TRUE); +#else + g_main_context_iteration (NULL, TRUE); +#endif } gtk_timeout_remove (timeout_num); @@ -2175,6 +2191,7 @@ if (socketpair (AF_UNIX, SOCK_STREAM, 0, request->wakeup_main_thread) == 0) { + /* FIXME - depreciated in GDK 2.0 */ handler = gdk_input_add (request->wakeup_main_thread[0], GDK_INPUT_READ, wakeup_main_thread, request); } @@ -2193,6 +2210,7 @@ { if (request->wakeup_main_thread[0] > 0 && request->wakeup_main_thread[1] > 0) { + /* FIXME - depreciated in GDK 2.0 */ gdk_input_remove (handler); close (request->wakeup_main_thread[0]); close (request->wakeup_main_thread[1]);