aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-29 11:52:44 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-29 11:52:44 +0800
commit9d83b98a54a420207ed3770bf0d2283d5c7dcd19 (patch)
treec4e2df57fb42b9599d68d39738582902468a80f0 /shell
parent18cd58aabeb253f8c4eb69d9aef295b9b83bb6c4 (diff)
downloadgsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.tar
gsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.tar.gz
gsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.tar.bz2
gsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.tar.lz
gsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.tar.xz
gsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.tar.zst
gsoc2013-evolution-9d83b98a54a420207ed3770bf0d2283d5c7dcd19.zip
Fix #3756, `--debug' option not working anymore.
svn path=/trunk/; revision=10586
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/main.c17
2 files changed, 18 insertions, 5 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 1f78da058f..7ae532d6e3 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,11 @@
2001-06-28 Ettore Perazzoli <ettore@ximian.com>
+ [Fix #3756, `--debug' option not working anymore.]
+
+ * main.c (main): Get the URI
+
+2001-06-28 Ettore Perazzoli <ettore@ximian.com>
+
[Fix #3382, shortcut bar crashes when checking mail, and all the
different incarnations involving updates to an shortcut bar having
shortcuts to non-existent folders. Also, this fixes #1643,
diff --git a/shell/main.c b/shell/main.c
index 8fa4c4a2ef..6329c26d38 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -164,7 +164,7 @@ idle_cb (void *data)
if (uri_list == NULL)
restored = e_shell_restore_from_settings (shell);
else
- restored = NULL;
+ restored = FALSE;
if (!getenv ("EVOLVE_ME_HARDER"))
development_warning ();
@@ -215,12 +215,13 @@ main (int argc, char **argv)
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
};
GSList *uri_list;
- int i;
+ const char **args;
+ poptContext popt_context;
bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
textdomain (PACKAGE);
- gnome_init_with_popt_table ("Evolution", VERSION, argc, argv, options, 0, NULL);
+ gnome_init_with_popt_table ("Evolution", VERSION, argc, argv, options, 0, &popt_context);
if (evolution_debug_log) {
int fd;
@@ -254,8 +255,14 @@ main (int argc, char **argv)
exit (1);
uri_list = NULL;
- for (i = 1; i < argc; i++)
- uri_list = g_slist_prepend (uri_list, argv[i]);
+
+ args = poptGetArgs (popt_context);
+ if (args == NULL) {
+ const char **p;
+
+ for (p = args; *p != NULL; p++)
+ uri_list = g_slist_prepend (uri_list, (char *) *p);
+ }
gtk_idle_add (idle_cb, uri_list);