Mercurial > gftp.yaz
comparison src/gtk/gftp-gtk.c @ 873:42f9ce5e4bff
2007-2-4 Brian Masney <masneyb@gftp.org>
* src/uicommon/gftpui.c - don't use a sigjmp buffer for the stop
button. Instead, make sure a signal is delivered to the child thread
and the thread will exit gracefully. Removed unused functions:
_gftpui_cb_connect() and _gftpui_cb_disconnect()
* src/gtk/gftp-gtk.c (stop_button) - set the cancel variable inside
the gftp_request structure when the stop button is pressed.
author | masneyb |
---|---|
date | Sun, 04 Feb 2007 21:29:38 +0000 |
parents | 1fae947d4418 |
children | a15adc70e327 |
comparison
equal
deleted
inserted
replaced
872:d7cbef177dfc | 873:42f9ce5e4bff |
---|---|
1249 { | 1249 { |
1250 pthread_t comptid; | 1250 pthread_t comptid; |
1251 | 1251 |
1252 memset (&comptid, 0, sizeof (comptid)); | 1252 memset (&comptid, 0, sizeof (comptid)); |
1253 if (!pthread_equal (comptid, window1.tid)) | 1253 if (!pthread_equal (comptid, window1.tid)) |
1254 pthread_kill (window1.tid, SIGINT); | 1254 { |
1255 window1.request->cancel = 1; | |
1256 pthread_kill (window1.tid, SIGINT); | |
1257 } | |
1255 else if (!pthread_equal (comptid, window2.tid)) | 1258 else if (!pthread_equal (comptid, window2.tid)) |
1256 pthread_kill (window2.tid, SIGINT); | 1259 { |
1260 window2.request->cancel = 1; | |
1261 pthread_kill (window2.tid, SIGINT); | |
1262 } | |
1257 } | 1263 } |
1258 | 1264 |
1259 | 1265 |
1260 static int | 1266 static int |
1261 gftp_gtk_config_file_read_color (char *str, gftp_config_vars * cv, int line) | 1267 gftp_gtk_config_file_read_color (char *str, gftp_config_vars * cv, int line) |