From e7954c3f251aabbf95d099159709c8c66dfedc44 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 4 Jun 2011 15:53:10 -0500 Subject: Coding style and whitespace cleanups. --- calendar/gui/comp-util.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'calendar/gui/comp-util.c') diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c index 4c5f80adcd..fbf9e7dc82 100644 --- a/calendar/gui/comp-util.c +++ b/calendar/gui/comp-util.c @@ -444,11 +444,15 @@ cal_comp_update_time_by_active_window (ECalComponent *comp, EShell *shell) g_return_if_fail (shell != NULL); window = e_shell_get_active_window (shell); - if (window && E_IS_SHELL_WINDOW (window)) { - EShellWindow *shell_window = E_SHELL_WINDOW (window); - if (e_shell_window_get_active_view (shell_window) - && g_str_equal (e_shell_window_get_active_view (shell_window), "calendar")) { + if (E_IS_SHELL_WINDOW (window)) { + EShellWindow *shell_window; + const gchar *active_view; + + shell_window = E_SHELL_WINDOW (window); + active_view = e_shell_window_get_active_view (shell_window); + + if (g_strcmp0 (active_view, "calendar") == 0) { EShellContent *shell_content; EShellView *shell_view; GnomeCalendar *gnome_cal; -- cgit v1.2.3