[gnome-power-manager/gnome-2-32] Fix a crash when displaying the 'No GConf schema warning'



commit 207dfb90f9a16a4cc27e89d21d7d5776855fce93
Author: Richard Hughes <richard hughsie com>
Date:   Fri Aug 6 16:02:44 2010 +0100

    Fix a crash when displaying the 'No GConf schema warning'

 src/gpm-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index dfb28dc..720f788 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -476,7 +476,8 @@ gpm_manager_notify (GpmManager *manager, NotifyNotification **notification_class
 	gpm_manager_notify_close (manager, *notification_class);
 
 	/* if the status icon is hidden, don't point at it */
-	if (gtk_status_icon_is_embedded (manager->priv->status_icon))
+	if (manager->priv->status_icon != NULL &&
+	    gtk_status_icon_is_embedded (manager->priv->status_icon))
 		notification = notify_notification_new_with_status_icon (title, message, icon, manager->priv->status_icon);
 	else
 		notification = notify_notification_new (title, message, icon, NULL);



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