Mercurial > pidgin
comparison src/gtkutils.c @ 7102:c4faffdc0862
[gaim-migrate @ 7667]
Move show_usage() to main.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 04:29:44 +0000 |
parents | acd2a66e59ed |
children | bf630f7dfdcd |
comparison
equal
deleted
inserted
replaced
7101:6ca56650d11a | 7102:c4faffdc0862 |
---|---|
1025 | 1025 |
1026 g_free(tmp); | 1026 g_free(tmp); |
1027 return buf; | 1027 return buf; |
1028 } | 1028 } |
1029 | 1029 |
1030 void show_usage(int mode, const char *name) | |
1031 { | |
1032 switch (mode) { | |
1033 case 0: /* full help text */ | |
1034 printf(_("Gaim %s\n" | |
1035 "Usage: %s [OPTION]...\n\n" | |
1036 " -a, --acct display account editor window\n" | |
1037 " -w, --away[=MESG] make away on signon (optional argument MESG specifies\n" | |
1038 " name of away message to use)\n" | |
1039 " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" | |
1040 " account(s) to use, seperated by commas)\n" | |
1041 " -n, --loginwin don't automatically login; show login window\n" | |
1042 " -u, --user=NAME use account NAME\n" | |
1043 " -f, --file=FILE use FILE as config\n" | |
1044 " -d, --debug print debugging messages to stdout\n" | |
1045 " -v, --version display the current version and exit\n" | |
1046 " -h, --help display this help and exit\n"), VERSION, name); | |
1047 break; | |
1048 case 1: /* short message */ | |
1049 printf(_("Gaim %s. Try `%s -h' for more information.\n"), VERSION, name); | |
1050 break; | |
1051 } | |
1052 } | |
1053 | |
1054 void gaim_gtk_find_images(const char *message, GSList **list) { | 1030 void gaim_gtk_find_images(const char *message, GSList **list) { |
1055 GData *attribs; | 1031 GData *attribs; |
1056 const char *tmp, *start, *end; | 1032 const char *tmp, *start, *end; |
1057 | 1033 |
1058 tmp = message; | 1034 tmp = message; |