[evolution/express2] remove special case for calendar



commit 41cf6f96d385935c2cd2abb98bdca50223dd0eff
Author: Michael Meeks <michael meeks novell com>
Date:   Mon Apr 12 14:52:03 2010 +0100

    remove special case for calendar

 modules/calendar/e-cal-shell-view.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c
index dc717c3..2ce3ac3 100644
--- a/modules/calendar/e-cal-shell-view.c
+++ b/modules/calendar/e-cal-shell-view.c
@@ -305,9 +305,6 @@ cal_shell_view_update_actions (EShellView *shell_view)
 
 	if(e_shell_get_express_mode(e_shell_get_default())) {
 		GtkWidget *widget, *item;
-		GdkScreen *scr;
-		gint monitor;
-		GdkRectangle rect;
 
 		/* Hack: Get rid of New and Send/Receive in toolbar 
 		 * while in express mode */
@@ -324,14 +321,6 @@ cal_shell_view_update_actions (EShellView *shell_view)
 		item = e_shell_window_get_managed_widget (
 			shell_window, "/main-toolbar/send-receive");
 		gtk_widget_hide(item);	
-
-		scr = gdk_screen_get_default ();
-		monitor = gdk_screen_get_monitor_at_window (scr, GTK_WIDGET (shell_window)->window);
-		gdk_screen_get_monitor_geometry (scr, monitor, &rect);
-		
-		gtk_window_set_default_size ((GtkWindow *)shell_window, rect.width, rect.height);
-		gtk_window_set_decorated ((GtkWindow *)shell_window, FALSE);
-
 	}
 	cal_shell_content = priv->cal_shell_content;
 	calendar = e_cal_shell_content_get_calendar (cal_shell_content);



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