Mercurial > gftp.yaz
comparison src/gtk/menu-items.c @ 254:b0c531678919
2003-8-11 Brian Masney <masneyb@gftp.org>
* src/gtk/menu-items.c lib/rfc959.c - fix for selecting ASCII/Binary
transfers
author | masneyb |
---|---|
date | Tue, 12 Aug 2003 00:38:06 +0000 |
parents | 41af60bc1f88 |
children | 2ad324cf4930 |
comparison
equal
deleted
inserted
replaced
253:a46c2eef5139 | 254:b0c531678919 |
---|---|
24 change_setting (gftp_window_data * wdata, int menuitem, GtkWidget * checkmenu) | 24 change_setting (gftp_window_data * wdata, int menuitem, GtkWidget * checkmenu) |
25 { | 25 { |
26 switch (menuitem) | 26 switch (menuitem) |
27 { | 27 { |
28 case 1: | 28 case 1: |
29 if (window1.request != NULL) | 29 gftp_set_global_option ("ascii_transfers", GINT_TO_POINTER(1)); |
30 gftp_set_request_option (window1.request, "ascii_transfers", GINT_TO_POINTER(1)); | |
31 | |
32 if (window2.request != NULL) | |
33 gftp_set_request_option (window2.request, "ascii_transfers", GINT_TO_POINTER(1)); | |
34 break; | 30 break; |
35 case 2: | 31 case 2: |
36 if (window1.request != NULL) | 32 gftp_set_global_option ("ascii_transfers", GINT_TO_POINTER(0)); |
37 gftp_set_request_option (window1.request, "ascii_transfers", GINT_TO_POINTER(0)); | |
38 | |
39 if (window2.request != NULL) | |
40 gftp_set_request_option (window2.request, "ascii_transfers", GINT_TO_POINTER(0)); | |
41 break; | 33 break; |
42 case 3: | 34 case 3: |
43 current_wdata = &window1; | 35 current_wdata = &window1; |
44 other_wdata = &window2; | 36 other_wdata = &window2; |
45 if (wdata->request) | 37 if (wdata->request) |