Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > main-updates-src > by-pkgid > 4c233be6f641b869cc4f8ab0f498083b > files > 3

gnome-power-manager-2.32.0-3.2.src.rpm

--- gnome-power-manager-2.32.0/src/gpm-manager.c.orig	2010-09-22 13:02:17.000000000 +0200
+++ gnome-power-manager-2.32.0/src/gpm-manager.c	2011-04-11 10:11:57.000000000 +0200
@@ -480,12 +480,8 @@
 	/* close any existing notification of this class */
 	gpm_manager_notify_close (manager, *notification_class);
 
-	/* if the status icon is hidden, don't point at it */
-	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);
+	/* create a new notification */
+	notification = notify_notification_new (title, message, icon);
 	notify_notification_set_timeout (notification, timeout);
 	notify_notification_set_urgency (notification, urgency);
 	g_signal_connect (notification, "closed", G_CALLBACK (gpm_manager_notification_closed_cb), notification_class);