Mercurial > gftp.yaz
comparison src/text/textui.c @ 356:7cb3327f96f7
2003-1-5 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/misc.c src/gtk/gftpui.c - added GFTP_URL_USAGE
that is the sytax for a valid URL.
* lib/protocols.c (gftp_set_password) - allow the password to be NULL
* src/gtk/gtkui.c src/text/textui.c src/uicommon/gftpui.h - added
gftpui_prompt_username() and gftpui_promot_password() to each UI
* src/text/gftp-text.c (gftp_text_ask_question) - don't display a
: at the end of the question here.
* src/text/gftp-text.h - added declaration of gftp_text_ask_question()
* src/uicommon/gftpui.c - added gftpui_common_cmd_open(). This still
needs a little bit more work done to it.
author | masneyb |
---|---|
date | Tue, 06 Jan 2004 02:42:30 +0000 |
parents | 07d635081926 |
children | d5409bf03ff1 |
comparison
equal
deleted
inserted
replaced
355:60d3da6ab336 | 356:7cb3327f96f7 |
---|---|
55 gftpui_check_reconnect (gftpui_callback_data * cdata) | 55 gftpui_check_reconnect (gftpui_callback_data * cdata) |
56 { | 56 { |
57 return (1); | 57 return (1); |
58 } | 58 } |
59 | 59 |
60 | |
61 char * | |
62 gftpui_prompt_username (void *uidata, gftp_request * request) | |
63 { | |
64 char tempstr[256], *ret; | |
65 | |
66 ret = g_strdup (gftp_text_ask_question (_("Username [anonymous]:"), 1, | |
67 tempstr, sizeof (tempstr))); | |
68 return (ret); | |
69 } | |
70 | |
71 | |
72 | |
73 char * | |
74 gftpui_prompt_password (void *uidata, gftp_request * request) | |
75 { | |
76 char tempstr[256], *ret; | |
77 | |
78 ret = g_strdup (gftp_text_ask_question (_("Password:"), 0, | |
79 tempstr, sizeof (tempstr))); | |
80 return (ret); | |
81 } | |
82 |