summaryrefslogtreecommitdiff
path: root/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-05-04 12:59:20 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-05-04 12:59:20 +0000
commitab1410d33401cf1fc4a384bb0b2d9901c8fe8d14 (patch)
tree51133f097c3d4ff5f1d830bdbc131118e3cfd0ac /community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch
parent9780d07c31b22125ad7ecba4e281ff41194f95be (diff)
Wed May 4 12:59:20 UTC 2011
Diffstat (limited to 'community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch')
-rw-r--r--community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch57
1 files changed, 0 insertions, 57 deletions
diff --git a/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch b/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch
deleted file mode 100644
index ea2f7803a..000000000
--- a/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-diff --git a/sensors-applet/active-sensor-libnotify.c b/sensors-applet/active-sensor-libnotify.c
-index e69b005..f7a7eb8 100644
---- a/sensors-applet/active-sensor-libnotify.c
-+++ b/sensors-applet/active-sensor-libnotify.c
-@@ -84,10 +84,23 @@ void active_sensor_libnotify_notify(ActiveSensor *active_sensor,
-
- /* now create a new one */
- g_debug("Creating new notification");
-+ #ifdef NOTIFY_CHECK_VERSION
-+ #if NOTIFY_CHECK_VERSION (0, 7, 1)
-+ active_sensor->notification[notif_type] = notify_notification_new(summary,
-+ message,
-+ icon_filename);
-+ #else
-+ active_sensor->notification[notif_type] = notify_notification_new(summary,
-+ message,
-+ icon_filename,
-+ attach);
-+ #endif
-+ #else
- active_sensor->notification[notif_type] = notify_notification_new(summary,
- message,
- icon_filename,
- attach);
-+ #endif
- g_signal_connect(active_sensor->notification[notif_type], "closed",
- G_CALLBACK(notif_closed_cb),
- active_sensor);
-diff --git a/sensors-applet/sensors-applet.c b/sensors-applet/sensors-applet.c
-index 9486173..81675b8 100644
---- a/sensors-applet/sensors-applet.c
-+++ b/sensors-applet/sensors-applet.c
-@@ -303,11 +303,23 @@ void sensors_applet_notify(SensorsApplet *sensors_applet,
- message = g_strdup_printf(_("An error occurred while trying to save the current sensor configuration. "));
- break;
- }
--
-+ #ifdef NOTIFY_CHECK_VERSION
-+ #if NOTIFY_CHECK_VERSION (0, 7, 1)
-+ sensors_applet->notification = notify_notification_new(summary,
-+ message,
-+ GTK_STOCK_DIALOG_WARNING);
-+ #else
-+ sensors_applet->notification = notify_notification_new(summary,
-+ message,
-+ GTK_STOCK_DIALOG_WARNING,
-+ GTK_WIDGET(sensors_applet->applet));
-+ #endif
-+ #else
- sensors_applet->notification = notify_notification_new(summary,
- message,
- GTK_STOCK_DIALOG_WARNING,
- GTK_WIDGET(sensors_applet->applet));
-+ #endif
- g_free(summary);
- g_free(message);
-