From 45d475c31b2dbda8033021984ba9a429b9eddf51 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 9 Aug 2009 20:03:24 -0400 Subject: Kill EMMenu and EMPopup. Also finish adapting Templates plugin to EPluginUI. It was still leaning pretty hard on EMPopup. --- shell/e-shell-window-private.c | 11 ++++++++++- shell/e-shell-window.c | 11 ----------- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'shell') diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c index 71617433d1..1eb5eed460 100644 --- a/shell/e-shell-window-private.c +++ b/shell/e-shell-window-private.c @@ -212,6 +212,8 @@ e_shell_window_private_init (EShellWindow *shell_window) merge_id = gtk_ui_manager_new_merge_id (priv->ui_manager); priv->gal_view_merge_id = merge_id; + gtk_window_set_title (GTK_WINDOW (shell_window), _("Evolution")); + e_shell_window_actions_init (shell_window); accel_group = gtk_ui_manager_get_accel_group (priv->ui_manager); @@ -335,10 +337,12 @@ e_shell_window_private_constructed (EShellWindow *shell_window) EShellSettings *shell_settings; EShell *shell; GConfBridge *bridge; - GtkActionGroup *action_group; GtkAction *action; + GtkActionGroup *action_group; + GtkUIManager *ui_manager; GObject *object; const gchar *key; + const gchar *id; shell = e_shell_window_get_shell (shell_window); shell_settings = e_shell_get_shell_settings (shell); @@ -427,6 +431,11 @@ e_shell_window_private_constructed (EShellWindow *shell_window) gconf_bridge_bind_property (bridge, key, object, "active"); shell_window_init_switcher_style (shell_window); + + id = "org.gnome.evolution.shell"; + ui_manager = e_shell_window_get_ui_manager (shell_window); + e_plugin_ui_register_manager (ui_manager, id, shell_window); + e_plugin_ui_enable_manager (ui_manager, id); } void diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index c838235616..19392094ee 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -335,20 +335,9 @@ shell_window_class_init (EShellWindowClass *class) static void shell_window_init (EShellWindow *shell_window) { - GtkUIManager *ui_manager; - const gchar *id; - shell_window->priv = E_SHELL_WINDOW_GET_PRIVATE (shell_window); - gtk_window_set_title (GTK_WINDOW (shell_window), _("Evolution")); - e_shell_window_private_init (shell_window); - - ui_manager = e_shell_window_get_ui_manager (shell_window); - - id = "org.gnome.evolution.shell"; - e_plugin_ui_register_manager (ui_manager, id, shell_window); - e_plugin_ui_enable_manager (ui_manager, id); } GType -- cgit