aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-04-02 11:41:57 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-04-02 11:41:57 +0800
commit136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb (patch)
tree2c76b17072876a58d1d7ab6b6601a611d680f503 /shell/e-shell.c
parentc8e1c20b8a6b5ba84785ef63fcb4c2f4224dd0bc (diff)
downloadgsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.tar
gsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.tar.gz
gsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.tar.bz2
gsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.tar.lz
gsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.tar.xz
gsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.tar.zst
gsoc2013-evolution-136cf86a7cbf3b0e20720d2a1ebe7521f617b7bb.zip
[#39467]
2003-04-02 Not Zed <NotZed@Ximian.com> [#39467] * e-shell.c (e_shell_construct): Change the splash logic slightly, so that if we can't create the splash, we dont try and cast/use it. * e-splash.c (e_splash_new): dont use a g_return* for what could be a valid (tho incorrect) runtime condition. svn path=/trunk/; revision=20629
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 687d34e708..826178413f 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1252,7 +1252,7 @@ e_shell_construct (EShell *shell,
gboolean show_splash,
EShellStartupLineMode startup_line_mode)
{
- GtkWidget *splash;
+ GtkWidget *splash = NULL;
EShellPrivate *priv;
CORBA_Object corba_object;
gchar *shortcut_path;
@@ -1303,24 +1303,19 @@ e_shell_construct (EShell *shell,
if (bonobo_activation_active_server_register (iid, corba_object) != Bonobo_ACTIVATION_REG_SUCCESS)
return E_SHELL_CONSTRUCT_RESULT_CANNOTREGISTER;
- if (! show_splash) {
- splash = NULL;
- } else {
- splash = e_splash_new ();
+ if (show_splash
+ && (splash = e_splash_new ())) {
g_signal_connect (splash, "delete_event",
G_CALLBACK (gtk_widget_hide_on_delete), NULL);
gtk_widget_show (splash);
}
-
+
while (gtk_events_pending ())
gtk_main_iteration ();
priv->user_creatable_items_handler = e_shell_user_creatable_items_handler_new ();
- if (show_splash)
- setup_components (shell, E_SPLASH (splash));
- else
- setup_components (shell, NULL);
+ setup_components (shell, (ESplash *)splash);
/* Set up the shortcuts. */
@@ -1347,9 +1342,9 @@ e_shell_construct (EShell *shell,
/* Now that we have a local storage and all the interfaces set up, we
can tell the components we are here. */
- set_owner_on_components (shell, E_SPLASH (splash));
+ set_owner_on_components (shell, (ESplash *)splash);
- if (show_splash)
+ if (splash)
gtk_widget_destroy (splash);
if (e_shell_startup_wizard_create () == FALSE) {