Mercurial > gftp.yaz
diff src/gtk/misc-gtk.c @ 783:6f766002bff2
2006-7-21 Brian Masney <masneyb@gftp.org>
* src/gtk/misc-gtk.c (update_window_info) - fixed the default protocol
dropdown when some protocols are disabled (from
Aurelien Jarno <aurelien@aurel32.net>) (closes #348177)
* src/uicommon/gftpui.c (_gftpui_common_thread_callback) - don't use
pause(). This causes a problem on systems that use NPTL. Use nanosleep()
instead (from Aurelien Jarno <aurelien@aurel32.net>) (closes #320883)
author | masneyb |
---|---|
date | Fri, 21 Jul 2006 13:17:33 +0000 |
parents | 49cfbe02926b |
children | 0e7ab0a51ddd |
line wrap: on
line diff
--- a/src/gtk/misc-gtk.c Fri Jul 21 08:05:48 2006 +0000 +++ b/src/gtk/misc-gtk.c Fri Jul 21 13:17:33 2006 +0000 @@ -209,7 +209,7 @@ update_window_info (void) { char *tempstr, empty[] = ""; - unsigned int port, i; + unsigned int port, i, j; GtkWidget * tempwid; if (current_wdata->request != NULL) @@ -239,13 +239,17 @@ else gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (portedit)->entry), ""); - for (i=0; gftp_protocols[i].init != NULL; i++) + for (i=0, j=0; gftp_protocols[i].init != NULL; i++) { + if (!gftp_protocols[i].shown) + continue; + if (current_wdata->request->init == gftp_protocols[i].init) { gtk_option_menu_set_history (GTK_OPTION_MENU (optionmenu), i); break; } + j++; } gtk_tooltips_set_tip (GTK_TOOLTIPS(openurl_tooltip), openurl_btn,