[evolution] Remove e_shell_set_startup_view().



commit 7c63fc5f31fccb5fa901997d207d4283a27e5eee
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Mar 31 09:34:28 2013 -0400

    Remove e_shell_set_startup_view().
    
    No longer needed.

 doc/reference/libeshell/libeshell-sections.txt |    1 -
 shell/e-shell.c                                |   18 ------------------
 shell/e-shell.h                                |    3 ---
 shell/main.c                                   |    3 ---
 4 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/doc/reference/libeshell/libeshell-sections.txt b/doc/reference/libeshell/libeshell-sections.txt
index 3359bbd..f8b1f14 100644
--- a/doc/reference/libeshell/libeshell-sections.txt
+++ b/doc/reference/libeshell/libeshell-sections.txt
@@ -26,7 +26,6 @@ e_shell_event
 EShellQuitReason
 e_shell_quit
 e_shell_cancel_quit
-e_shell_set_startup_view
 e_shell_migrate_attempt
 <SUBSECTION Standard>
 E_SHELL
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 49786c8..40a771c 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -62,8 +62,6 @@ struct _EShellPrivate {
        gchar *geometry;
        gchar *module_directory;
 
-       gchar *startup_view;
-
        guint inhibit_cookie;
 
        gulong backend_died_handler_id;
@@ -652,11 +650,6 @@ shell_dispose (GObject *object)
                priv->backend_died_handler_id = 0;
        }
 
-       if (priv->startup_view != NULL) {
-               g_free (priv->startup_view);
-               priv->startup_view = NULL;
-       }
-
        if (priv->registry != NULL) {
                g_object_unref (priv->registry);
                priv->registry = NULL;
@@ -1124,8 +1117,6 @@ 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
@@ -1782,12 +1773,3 @@ e_shell_cancel_quit (EShell *shell)
        g_signal_stop_emission (shell, signals[QUIT_REQUESTED], 0);
 }
 
-void
-e_shell_set_startup_view (EShell *shell,
-                          const gchar *view)
-{
-       g_return_if_fail (E_IS_SHELL (shell));
-
-       shell->priv->startup_view = g_strdup (view);
-}
-
diff --git a/shell/e-shell.h b/shell/e-shell.h
index 34a1a8f..c27bd0e 100644
--- a/shell/e-shell.h
+++ b/shell/e-shell.h
@@ -143,9 +143,6 @@ gboolean    e_shell_quit                    (EShell *shell,
                                                 EShellQuitReason reason);
 void           e_shell_cancel_quit             (EShell *shell);
 
-void           e_shell_set_startup_view        (EShell *shell,
-                                                const gchar *view);
-
 G_END_DECLS
 
 #endif /* E_SHELL_H */
diff --git a/shell/main.c b/shell/main.c
index a8342e1..b070c03 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -674,9 +674,6 @@ main (gint argc,
                e_plugin_load_plugins ();
        }
 
-       if (requested_view != NULL)
-               e_shell_set_startup_view (shell, requested_view);
-
        /* Attempt migration -after- loading all modules and plugins,
         * as both shell backends and certain plugins hook into this. */
        e_shell_migrate_attempt (shell);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]