Mercurial > gftp.yaz
diff 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 |
line wrap: on
line diff
--- a/src/text/textui.c Tue Jan 06 01:44:09 2004 +0000 +++ b/src/text/textui.c Tue Jan 06 02:42:30 2004 +0000 @@ -57,3 +57,26 @@ return (1); } + +char * +gftpui_prompt_username (void *uidata, gftp_request * request) +{ + char tempstr[256], *ret; + + ret = g_strdup (gftp_text_ask_question (_("Username [anonymous]:"), 1, + tempstr, sizeof (tempstr))); + return (ret); +} + + + +char * +gftpui_prompt_password (void *uidata, gftp_request * request) +{ + char tempstr[256], *ret; + + ret = g_strdup (gftp_text_ask_question (_("Password:"), 0, + tempstr, sizeof (tempstr))); + return (ret); +} +