From bde1bc6bca4c5ed63a193f7dc50252e550a0fb40 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 11 May 2010 18:47:09 +0530 Subject: Handle adding 'X' close button on the menu bar. Restore adding the same for adding in calendar since it doesn't have a toolbar. --- shell/e-shell-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 77215e73a2..be099b9869 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -670,7 +670,8 @@ shell_view_construct_searchbar (EShellView *shell_view) item = gtk_tool_button_new (image, gtk_action_get_label (action)); gtk_widget_set_name (GTK_WIDGET (item), "MeeGoCloseButton"); gtk_activatable_set_related_action (GTK_ACTIVATABLE (item), action); - gtk_toolbar_insert (GTK_TOOLBAR (main_toolbar), item, -1); + gtk_box_pack_start ((GtkBox *)e_shell_window_get_menu_bar_box(shell_window), (GtkWidget *)item, FALSE, FALSE, 0); + gtk_widget_show_all((GtkWidget *)item); } return widget; -- cgit v1.2.3