diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-12-15 02:51:06 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-12-15 02:51:06 +0800 |
commit | 5b050b30a9c6a21636f541532c38ca4594ceff19 (patch) | |
tree | ad3a64cf60694f2895d85f32744f7ae8416ed147 /shell/e-shell.c | |
parent | bad0d146822c285a1120c07cfb067706b73eff18 (diff) | |
download | gsoc2013-evolution-5b050b30a9c6a21636f541532c38ca4594ceff19.tar.gz gsoc2013-evolution-5b050b30a9c6a21636f541532c38ca4594ceff19.tar.zst gsoc2013-evolution-5b050b30a9c6a21636f541532c38ca4594ceff19.zip |
[Fix #17258, shell displays splash even if Evolution is already
running.]
* e-shell.c (e_shell_construct): Display the splash screen only if
the registration succeeds.
svn path=/trunk/; revision=15078
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c index 88a9f08a4f..abcd11819f 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -1106,15 +1106,6 @@ e_shell_construct (EShell *shell, CORBA_exception_free (&ev); - if (! show_splash) { - splash = NULL; - } else { - splash = e_splash_new (); - gtk_signal_connect (GTK_OBJECT (splash), "delete_event", - GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete), NULL); - gtk_widget_show (splash); - } - /* Now we can register into OAF. Notice that we shouldn't be registering into OAF until we are sure we can complete. */ @@ -1125,6 +1116,15 @@ e_shell_construct (EShell *shell, return E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER; } + if (! show_splash) { + splash = NULL; + } else { + splash = e_splash_new (); + gtk_signal_connect (GTK_OBJECT (splash), "delete_event", + GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete), NULL); + gtk_widget_show (splash); + } + while (gtk_events_pending ()) gtk_main_iteration (); |