From 68fbde50f89a55d92d8003d90675b35db7f2adb2 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 18 May 2004 04:44:39 +0000 Subject: added noshell and noshell-reason error strings. the latter seems a waste, 2004-05-18 Not Zed * 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 --- shell/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'shell/main.c') 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 +#include "widgets/misc/e-error.h" #include #include @@ -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; -- cgit