[evolution] Remove e_shell_configure_ui_manager().



commit 440ea8e3a0b6689d49efae2e9be3471327cb782d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Mar 31 09:41:36 2013 -0400

    Remove e_shell_configure_ui_manager().
    
    No longer needed.

 doc/reference/libeshell/libeshell-sections.txt |    1 -
 mail/e-mail-browser.c                          |    1 -
 shell/e-shell-utils.c                          |   22 ----------------------
 shell/e-shell-utils.h                          |    3 ---
 shell/e-shell-window-private.c                 |    1 -
 5 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/doc/reference/libeshell/libeshell-sections.txt b/doc/reference/libeshell/libeshell-sections.txt
index f8b1f14..ecf19d4 100644
--- a/doc/reference/libeshell/libeshell-sections.txt
+++ b/doc/reference/libeshell/libeshell-sections.txt
@@ -220,7 +220,6 @@ EShellTaskbarPrivate
 <SECTION>
 <FILE>e-shell-utils</FILE>
 <TITLE>Shell Utilities</TITLE>
-e_shell_configure_ui_manager
 e_shell_run_open_dialog
 e_shell_run_save_dialog
 e_shell_utils_import_uris
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index 36489fb..8556fb2 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -554,7 +554,6 @@ mail_browser_constructed (GObject *object)
        shell = e_shell_backend_get_shell (shell_backend);
 
        ui_manager = e_ui_manager_new ();
-       e_shell_configure_ui_manager (shell, E_UI_MANAGER (ui_manager));
 
        browser->priv->ui_manager = ui_manager;
        domain = GETTEXT_PACKAGE;
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c
index 1bdc829..f289b36 100644
--- a/shell/e-shell-utils.c
+++ b/shell/e-shell-utils.c
@@ -36,28 +36,6 @@
 #include <libedataserver/libedataserver.h>
 
 /**
- * e_shell_configure_ui_manager:
- * @shell: an #EShell
- * @ui_manager: an #EUIManager
- *
- * Adds shell integration to @ui_manager.  In particular, it keeps
- * @ui_manager's EUIManager:express-mode property synchronized with
- * @shell's EShell:express-mode property.
- **/
-void
-e_shell_configure_ui_manager (EShell *shell,
-                              EUIManager *ui_manager)
-{
-       g_return_if_fail (E_IS_SHELL (shell));
-       g_return_if_fail (E_IS_UI_MANAGER (ui_manager));
-
-       g_object_bind_property (
-               shell, "express-mode",
-               ui_manager, "express-mode",
-               G_BINDING_SYNC_CREATE);
-}
-
-/**
  * e_shell_run_open_dialog:
  * @shell: an #EShell
  * @title: file chooser dialog title
diff --git a/shell/e-shell-utils.h b/shell/e-shell-utils.h
index fb33c3c..be0f4b4 100644
--- a/shell/e-shell-utils.h
+++ b/shell/e-shell-utils.h
@@ -26,9 +26,6 @@
 
 G_BEGIN_DECLS
 
-void           e_shell_configure_ui_manager    (EShell *shell,
-                                                EUIManager *ui_manager);
-
 GFile *                e_shell_run_open_dialog         (EShell *shell,
                                                 const gchar *title,
                                                 GtkCallback customize_func,
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 6bea868..69e3ff2 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -272,7 +272,6 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
        shell = e_shell_window_get_shell (shell_window);
 
        ui_manager = e_shell_window_get_ui_manager (shell_window);
-       e_shell_configure_ui_manager (shell, E_UI_MANAGER (ui_manager));
 
        /* Defer actions and menu merging until we have set express mode */
 


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