aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-18 12:44:39 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-18 12:44:39 +0800
commit68fbde50f89a55d92d8003d90675b35db7f2adb2 (patch)
tree74511a9d5c489dfe3e21b44033ee132fbb6d3455 /shell/main.c
parentd1551390ffa5d2b4b22f3cf085f30676885e8f0d (diff)
downloadgsoc2013-evolution-68fbde50f89a55d92d8003d90675b35db7f2adb2.tar.gz
gsoc2013-evolution-68fbde50f89a55d92d8003d90675b35db7f2adb2.tar.zst
gsoc2013-evolution-68fbde50f89a55d92d8003d90675b35db7f2adb2.zip
added noshell and noshell-reason error strings. the latter seems a waste,
2004-05-18 Not Zed <NotZed@Ximian.com> * shell-errors.xml: added noshell and noshell-reason error strings. the latter seems a waste, but ... * main.c (idle_cb): use e_error for the new no shell errors. svn path=/trunk/; revision=25946
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/main.c b/shell/main.c
index 3b67aa7098..600842710b 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -68,6 +68,7 @@
#include "Evolution-DataServer.h"
#include <gal/widgets/e-cursors.h>
+#include "widgets/misc/e-error.h"
#include <fcntl.h>
#include <signal.h>
@@ -387,8 +388,7 @@ idle_cb (void *data)
case E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER:
corba_shell = bonobo_activation_activate_from_id (E_SHELL_OAFIID, 0, NULL, &ev);
if (ev._major != CORBA_NO_EXCEPTION || corba_shell == CORBA_OBJECT_NIL) {
- e_notice (NULL, GTK_MESSAGE_ERROR,
- _("Cannot register the Evolution shell."));
+ e_error_run(NULL, "shell:noshell", NULL);
CORBA_exception_free (&ev);
bonobo_main_quit ();
return FALSE;
@@ -396,9 +396,8 @@ idle_cb (void *data)
break;
default:
- e_notice (NULL, GTK_MESSAGE_ERROR,
- _("Cannot initialize the Evolution shell: %s"),
- e_shell_construct_result_to_string (result));
+ e_error_run(NULL, "shell:noshell-reason",
+ e_shell_construct_result_to_string(result), NULL);
CORBA_exception_free (&ev);
bonobo_main_quit ();
return FALSE;