From a650f15f0090d68a503b5b11561bfb3cdb4663dc Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Thu, 22 Apr 2010 17:27:20 +0530 Subject: Store the initial view request and use that to decide whether to show startup wizard or not. Show only for mail and not calendar. --- shell/e-shell.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index 7f291745e3..d238f22e3b 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -61,6 +61,8 @@ struct _EShellPrivate { gchar *geometry; gchar *module_directory; + + gchar *startup_view; guint auto_reconnect : 1; guint network_available : 1; @@ -617,6 +619,11 @@ shell_dispose (GObject *object) priv = E_SHELL_GET_PRIVATE (object); + if (priv->startup_view != NULL) { + g_free (priv->startup_view); + priv->startup_view = NULL; + } + if (priv->settings != NULL) { g_object_unref (priv->settings); priv->settings = NULL; @@ -1153,6 +1160,8 @@ e_shell_init (EShell *shell) shell->priv->backends_by_scheme = backends_by_scheme; shell->priv->safe_mode = e_file_lock_exists (); + shell->priv->startup_view = NULL; + g_object_ref_sink (shell->priv->preferences_window); /* Add our icon directory to the theme's search path @@ -1936,3 +1945,17 @@ e_shell_adapt_window_size (EShell *shell, gtk_window_set_decorated (window, FALSE); gtk_window_maximize (window); } + +void +e_shell_set_startup_view (EShell *shell, + const char *view) +{ + shell->priv->startup_view = g_strdup(view); +} + + +const char * +e_shell_get_startup_view (EShell *shell) +{ + return shell->priv->startup_view; +} -- cgit