diff -r ab437cdb5943 -r a009a7319294 pidgin/gtkmain.c --- a/pidgin/gtkmain.c Mon Feb 25 04:39:37 2008 +0000 +++ b/pidgin/gtkmain.c Wed Mar 05 17:18:09 2008 +0000 @@ -302,6 +302,8 @@ static void pidgin_ui_init(void) { + pidgin_stock_init(); + /* Set the UI operation structures. */ purple_accounts_set_ui_ops(pidgin_accounts_get_ui_ops()); purple_xfers_set_ui_ops(pidgin_xfers_get_ui_ops()); @@ -316,7 +318,6 @@ purple_idle_set_ui_ops(pidgin_idle_get_ui_ops()); #endif - pidgin_stock_init(); pidgin_account_init(); pidgin_connection_init(); pidgin_blist_init(); @@ -408,8 +409,9 @@ " -h, --help display this help and exit\n" " -m, --multiple do not ensure single instance\n" " -n, --nologin don't automatically login\n" - " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" - " account(s) to use, separated by commas)\n" + " -l, --login[=NAME] enable specified account(s) (optional argument NAME\n" + " specifies account(s) to use, separated by commas.\n" + " Without this only the first account will be enabled).\n" " --display=DISPLAY X display to use\n" " -v, --version display the current version and exit\n"), PIDGIN_NAME, DISPLAY_VERSION, name); #else @@ -420,8 +422,9 @@ " -h, --help display this help and exit\n" " -m, --multiple do not ensure single instance\n" " -n, --nologin don't automatically login\n" - " -l, --login[=NAME] automatically login (optional argument NAME specifies\n" - " account(s) to use, separated by commas)\n" + " -l, --login[=NAME] enable specified account(s) (optional argument NAME\n" + " specifies account(s) to use, separated by commas.\n" + " Without this only the first account will be enabled).\n" " -v, --version display the current version and exit\n"), PIDGIN_NAME, DISPLAY_VERSION, name); #endif } @@ -478,6 +481,7 @@ gboolean opt_help = FALSE; gboolean opt_login = FALSE; gboolean opt_nologin = FALSE; + gboolean opt_nocrash = FALSE; gboolean opt_version = FALSE; gboolean opt_si = TRUE; /* Check for single instance? */ char *opt_config_dir_arg = NULL; @@ -508,6 +512,7 @@ {"login", optional_argument, NULL, 'l'}, {"multiple", no_argument, NULL, 'm'}, {"nologin", no_argument, NULL, 'n'}, + {"nocrash", no_argument, NULL, 'x'}, {"session", required_argument, NULL, 's'}, {"version", no_argument, NULL, 'v'}, {"display", required_argument, NULL, 'D'}, @@ -657,6 +662,9 @@ case 'm': /* do not ensure single instance. */ opt_si = FALSE; break; + case 'x': /* --nocrash */ + opt_nocrash = TRUE; + break; case 'D': /* --display */ case 'S': /* --sync */ /* handled by gtk_init_check below */