[evolution] Hide searchbar in calendar view in express mode.



commit ca79c7993fc6ed146c62d3ce984878350be7c110
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Tue Mar 30 18:05:04 2010 +0530

    Hide searchbar in calendar view in express mode.

 modules/calendar/e-cal-shell-view.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c
index 5df2806..dc717c3 100644
--- a/modules/calendar/e-cal-shell-view.c
+++ b/modules/calendar/e-cal-shell-view.c
@@ -502,7 +502,11 @@ cal_shell_view_class_init (ECalShellViewClass *class,
 	shell_view_class->new_shell_sidebar = e_cal_shell_sidebar_new;
 	shell_view_class->execute_search = cal_shell_view_execute_search;
 	shell_view_class->update_actions = cal_shell_view_update_actions;
-}
+	
+	if(e_shell_get_express_mode(e_shell_get_default()))
+		shell_view_class->construct_searchbar = NULL;
+
+}	
 
 static void
 cal_shell_view_init (ECalShellView *cal_shell_view,



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