[anjal] Fix crit warnings on startup.



commit 989a968e6a74a33a50b669d90bfaa131ab207fc5
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Mon Jul 20 12:01:17 2009 +0530

    Fix crit warnings on startup.

 src/mail-component.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mail-component.c b/src/mail-component.c
index 2acefe4..9d5a2f4 100644
--- a/src/mail-component.c
+++ b/src/mail-component.c
@@ -1525,10 +1525,10 @@ void
 mail_component_show_status_bar (gboolean show)
 {
 	MailComponent *mc = mail_component_peek();
-	if (show)
+	if (show && mc->status_bar)
 		gtk_widget_show (mc->status_bar);
 	else {
-		if (e_task_bar_get_num_children((ETaskBar *) mc->status_bar) == 0)
+		if (mc->status_bar && e_task_bar_get_num_children((ETaskBar *) mc->status_bar) == 0)
 			gtk_widget_hide (mc->status_bar);
 	}
 }



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