[evolution-rss/evolution-rss-0-2-0] do not generate warnings on	missing shell view
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [evolution-rss/evolution-rss-0-2-0] do not generate warnings on	missing shell view
- Date: Sat, 18 Dec 2010 12:48:05 +0000 (UTC)
commit b2bf29c72ad0670e49d0b35e44f81e8504e49e07
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun Dec 12 17:42:47 2010 +0200
    do not generate warnings on missing shell view
 src/notification.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/notification.c b/src/notification.c
index 9a2a543..b022269 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -175,12 +175,13 @@ void
 taskbar_push_message(gchar *message)
 {
 #if EVOLUTION_VERSION < 22900 //kb//
-	EActivityHandler *activity_handler = 
+	EActivityHandler *activity_handler =
 		mail_component_peek_activity_handler (mail_component_peek ());
 	e_activity_handler_set_message(activity_handler, message);
 #else
 	EShellTaskbar *shell_taskbar;
-	g_return_if_fail(rss_shell_view != NULL);
+	if (!rss_shell_view)
+		return;
 	shell_taskbar = e_shell_view_get_shell_taskbar (rss_shell_view);
 	e_shell_taskbar_set_message (shell_taskbar, message);
 #endif
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]