[gnome-power-manager] Port to libnotify 0.7.0



commit be61e6201232dcadf569ba49ff8f930d8235bec6
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 18 16:03:17 2010 +0100

    Port to libnotify 0.7.0

 configure.ac      |    2 +-
 src/gpm-manager.c |    8 ++------
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0df99e7..f48535b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,7 +130,7 @@ PKG_CHECK_EXISTS(
 PKG_CHECK_MODULES(UPOWER, upower-glib >= 0.9.1)
 
 dnl **** Check for NOTIFY ****
-PKG_CHECK_MODULES(NOTIFY, libnotify >= 0.5.0)
+PKG_CHECK_MODULES(NOTIFY, libnotify >= 0.6.0)
 
 dnl Required for the properties window
 PKG_CHECK_MODULES(CONTROL_CENTER, [
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 8f257f5..0dbb76d 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -500,15 +500,11 @@ gpm_manager_notify (GpmManager *manager, NotifyNotification **notification_class
 	/* 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 (gtk_status_icon_is_embedded (manager->priv->status_icon))
-		notification = notify_notification_new_with_status_icon (title, message, icon_name, manager->priv->status_icon);
-	else
-		notification = notify_notification_new (title, message, icon_name, NULL);
+	/* create a new notification */
+	notification = notify_notification_new (title, message, icon_name);
 	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);
-
 	egg_debug ("notification %p: %s : %s", notification, title, message);
 
 	/* try to show */



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