From 499dd4be3c8864b8411c58192ac164bbfd2f1df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Mon, 9 Nov 2015 12:11:12 +0100 Subject: main/gnome-power-manager: move to community --- .../gnome-power-manager-2.32.0-libnotify-0.7.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 community/gnome-power-manager/gnome-power-manager-2.32.0-libnotify-0.7.patch (limited to 'community/gnome-power-manager/gnome-power-manager-2.32.0-libnotify-0.7.patch') diff --git a/community/gnome-power-manager/gnome-power-manager-2.32.0-libnotify-0.7.patch b/community/gnome-power-manager/gnome-power-manager-2.32.0-libnotify-0.7.patch new file mode 100644 index 0000000000..022d2c5fe5 --- /dev/null +++ b/community/gnome-power-manager/gnome-power-manager-2.32.0-libnotify-0.7.patch @@ -0,0 +1,30 @@ +--- ./src/gpm-manager.c ++++ ./src/gpm-manager.c +@@ -43,6 +43,10 @@ + #include + #include + ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif ++ + #include "egg-debug.h" + #include "egg-console-kit.h" + +@@ -480,12 +484,16 @@ + /* close any existing notification of this class */ + gpm_manager_notify_close (manager, *notification_class); + ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ notification = notify_notification_new (title, message, icon); ++#else + /* 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); ++#endif + 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); -- cgit v1.2.3