aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-08 01:01:52 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-08 01:01:52 +0800
commite7971bb4f5f1d262a3f3af99f81c221a724131da (patch)
tree9a27ea0d6eeda598771c40bea1b896a58d0bbe0f /shell/e-shell-view.c
parent6aac85ab5b50dc9e3cc454c37858755a564120c3 (diff)
downloadgsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.tar
gsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.tar.gz
gsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.tar.bz2
gsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.tar.lz
gsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.tar.xz
gsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.tar.zst
gsoc2013-evolution-e7971bb4f5f1d262a3f3af99f81c221a724131da.zip
Fixed a refcount leak and added interfaces to add/remove folders
from an EStorage (although they are not implemented yet). svn path=/trunk/; revision=3460
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 4b419937d0..ec5ac167b6 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -311,6 +311,7 @@ setup_bonobo_ui_handler (EShellView *shell_view)
bonobo_ui_handler_set_app (uih, GNOME_APP (shell_view));
bonobo_ui_handler_create_menubar (uih);
+ bonobo_ui_handler_create_toolbar (uih, "Toolbar");
bonobo_ui_handler_set_statusbar (uih, priv->appbar);
priv->uih = uih;
@@ -343,6 +344,9 @@ destroy (GtkObject *object)
g_hash_table_foreach (priv->uri_to_control, hash_forall_destroy_control, NULL);
g_hash_table_destroy (priv->uri_to_control);
+
+ if (priv->shell != NULL)
+ bonobo_object_unref (BONOBO_OBJECT (priv->shell));
g_free (priv->uri);
@@ -432,7 +436,7 @@ e_shell_view_construct (EShellView *shell_view,
gnome_app_construct (GNOME_APP (shell_view), "evolution", "Evolution");
- gtk_object_ref (GTK_OBJECT (shell));
+ bonobo_object_ref (BONOBO_OBJECT (shell));
priv->shell = shell;
setup_widgets (shell_view);