[evolution] Missing search buttons in Calendar view



commit c64d09ebc544dbba13024f7706cb891e373fe64c
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 5 20:30:36 2012 +0100

    Missing search buttons in Calendar view

 modules/calendar/e-cal-shell-view.c |    2 +-
 shell/e-shell-searchbar.c           |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c
index afa30c3..f17a138 100644
--- a/modules/calendar/e-cal-shell-view.c
+++ b/modules/calendar/e-cal-shell-view.c
@@ -109,7 +109,7 @@ cal_shell_view_constructed (GObject *object)
 
 	gtk_widget_show_all (box);
 
-	gtk_box_pack_start (GTK_BOX (e_shell_searchbar_get_search_box (searchbar)), box, FALSE, FALSE, 0);
+	gtk_container_add (GTK_CONTAINER (e_shell_searchbar_get_search_box (searchbar)), box);
 }
 
 static void
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c
index b80b3e2..002fc35 100644
--- a/shell/e-shell-searchbar.c
+++ b/shell/e-shell-searchbar.c
@@ -1250,8 +1250,10 @@ e_shell_searchbar_new (EShellView *shell_view)
 {
 	g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), NULL);
 
-	return g_object_new (
-		E_TYPE_SHELL_SEARCHBAR, "shell-view", shell_view, NULL);
+	return g_object_new (E_TYPE_SHELL_SEARCHBAR,
+		"shell-view", shell_view,
+		"orientation", GTK_ORIENTATION_HORIZONTAL,
+		NULL);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]