diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-09 13:13:07 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-09 13:13:07 +0800 |
commit | 2b9c72826a8574385d0360267217cc068e27a910 (patch) | |
tree | 7793d8e5cfb7785417c69117e04c3e76fecf64c4 /shell/e-shell-view.c | |
parent | 19f1e3fe20c29690aaf07d26e81760405cc577df (diff) | |
download | gsoc2013-evolution-2b9c72826a8574385d0360267217cc068e27a910.tar.gz gsoc2013-evolution-2b9c72826a8574385d0360267217cc068e27a910.tar.zst gsoc2013-evolution-2b9c72826a8574385d0360267217cc068e27a910.zip |
Fix a weird UI merging bug.
svn path=/branches/kill-bonobo/; revision=37020
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 16c90b6e4e..f1f1ffb476 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -349,16 +349,20 @@ shell_view_toggled (EShellView *shell_view) EShellWindow *shell_window; GtkUIManager *ui_manager; const gchar *basename; + gboolean view_is_active; shell_view_class = E_SHELL_VIEW_GET_CLASS (shell_view); shell_window = e_shell_view_get_shell_window (shell_view); ui_manager = e_shell_window_get_ui_manager (shell_window); + view_is_active = e_shell_view_is_active (shell_view); basename = shell_view_class->ui_definition; - if (e_shell_view_is_active (shell_view)) + if (view_is_active && priv->merge_id == 0) priv->merge_id = e_load_ui_definition (ui_manager, basename); - else + else if (!view_is_active && priv->merge_id != 0) { gtk_ui_manager_remove_ui (ui_manager, priv->merge_id); + priv->merge_id = 0; + } gtk_ui_manager_ensure_update (ui_manager); } |