Revision 3193 src/main.c

View differences:

main.c
1 1
/*
2 2
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3
 * Copyright (C) 1999-2012 Hiroyuki Yamamoto
3
 * Copyright (C) 1999-2013 Hiroyuki Yamamoto
4 4
 *
5 5
 * This program is free software; you can redistribute it and/or modify
6 6
 * it under the terms of the GNU General Public License as published by
......
132 132
	GPtrArray *status_full_folders;
133 133
	gchar *open_msg;
134 134
	gboolean configdir;
135
	gboolean safe_mode;
135 136
	gboolean exit;
136 137
	gboolean restart;
137 138
	gchar *argv0;
......
607 608
					(argv[i + 1], -1, NULL, NULL, NULL);
608 609
				i++;
609 610
			}
611
		} else if (!strncmp(argv[i], "--safemode", 10)) {
612
			cmd.safe_mode = TRUE;
610 613
		} else if (!strncmp(argv[i], "--exit", 6)) {
611 614
			cmd.exit = TRUE;
612 615
		} else if (!strncmp(argv[i], "--help", 6)) {
......
633 636
#endif
634 637
			g_print("%s\n", _("  --exit                 exit Sylpheed"));
635 638
			g_print("%s\n", _("  --debug                debug mode"));
639
			g_print("%s\n", _("  --safemode             safe mode"));
636 640
			g_print("%s\n", _("  --help                 display this help and exit"));
637 641
			g_print("%s\n", _("  --version              output version information and exit"));
638 642

  
......
1249 1253
		return;
1250 1254
	}
1251 1255

  
1256
	if (cmd.safe_mode) {
1257
		STATUSBAR_POP(mainwin);
1258
		return;
1259
	}
1260

  
1252 1261
	ADD_SYM(prog_version);
1253 1262
	ADD_SYM(app_will_exit);
1254 1263

  

Also available in: Unified diff