[evolution/clutter-calendar-v2] Fix warnings



commit 91b91217c5d5da4d2b0cc1ed3b154f25db9f5d7d
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Thu Sep 16 16:03:10 2010 +0530

    Fix warnings

 calendar/gui/ea-calendar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/ea-calendar.c b/calendar/gui/ea-calendar.c
index 84ce9d8..dfed18e 100644
--- a/calendar/gui/ea-calendar.c
+++ b/calendar/gui/ea-calendar.c
@@ -184,7 +184,8 @@ ea_calendar_focus_watcher (GSignalInvocationHint *ihint,
 		if (event->type == GDK_FOCUS_CHANGE) {
 			if (event->focus_change.in) {
 				/* give main item chance to emit focus */
-				gnome_canvas_item_grab_focus (week_view->main_canvas_item);
+				if (week_view->main_canvas_item)
+					gnome_canvas_item_grab_focus (week_view->main_canvas_item);
 			}
 		}
 	}



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