From 935897c9a256e0d260adc1dd0dc56b1a5c760cd9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 9 Sep 2008 02:53:40 +0000 Subject: Fix some bugs in the way the shell widgets get initialized. svn path=/branches/kill-bonobo/; revision=36279 --- addressbook/gui/component/e-book-shell-view.c | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'addressbook/gui/component/e-book-shell-view.c') diff --git a/addressbook/gui/component/e-book-shell-view.c b/addressbook/gui/component/e-book-shell-view.c index e383e8bb7b..218a0e9929 100644 --- a/addressbook/gui/component/e-book-shell-view.c +++ b/addressbook/gui/component/e-book-shell-view.c @@ -172,32 +172,14 @@ static void book_shell_view_constructed (GObject *object) { EBookShellView *book_shell_view; - EShellContent *shell_content; - EShellSidebar *shell_sidebar; - EShellTaskbar *shell_taskbar; - EShellView *shell_view; - GtkWidget *widget; - /* Chain up to parent's constructed() method. */ - G_OBJECT_CLASS (parent_class)->constructed (object); - - shell_view = E_SHELL_VIEW (object); book_shell_view = E_BOOK_SHELL_VIEW (object); - widget = book_shell_view->priv->notebook; - shell_content = e_shell_view_get_content (shell_view); - gtk_container_add (GTK_CONTAINER (shell_content), widget); - - widget = book_shell_view->priv->scrolled_window; - shell_sidebar = e_shell_view_get_sidebar (shell_view); - gtk_container_add (GTK_CONTAINER (shell_sidebar), widget); - - shell_taskbar = e_shell_view_get_taskbar (shell_view); - e_activity_handler_attach_task_bar ( - book_shell_view->priv->activity_handler, shell_taskbar); - e_book_shell_view_actions_init (book_shell_view); e_book_shell_view_update_search_filter (book_shell_view); + + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (parent_class)->constructed (object); } static void -- cgit v1.2.3