Lines 1-48
Link Here
|
1 |
--- src/check_events.c.orig 2011-08-12 15:17:59.000000000 +0200 |
|
|
2 |
+++ src/check_events.c 2011-08-12 15:20:36.000000000 +0200 |
3 |
@@ -454,9 +454,9 @@ |
4 |
a->date = 0; |
5 |
|
6 |
if (textdesc != NULL) |
7 |
- a->notify = notify_notification_new (item->summary, textdesc, GTK_STOCK_DIALOG_WARNING, NULL); |
8 |
+ a->notify = notify_notification_new (item->summary, textdesc, GTK_STOCK_DIALOG_WARNING); |
9 |
else |
10 |
- a->notify = notify_notification_new (item->summary, text, GTK_STOCK_DIALOG_WARNING, NULL); |
11 |
+ a->notify = notify_notification_new (item->summary, text, GTK_STOCK_DIALOG_WARNING); |
12 |
|
13 |
g_free (textdesc); |
14 |
g_free (text); |
15 |
@@ -483,9 +483,7 @@ |
16 |
#endif /* HAVE_LIBNOTIFY */ |
17 |
|
18 |
if (gtk_status_icon_get_visible (appGUI->osmo_trayicon)) { |
19 |
-#ifdef HAVE_LIBNOTIFY |
20 |
- notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon); |
21 |
-#endif /* HAVE_LIBNOTIFY */ |
22 |
+ |
23 |
gtk_status_icon_set_from_stock (appGUI->osmo_trayicon, OSMO_STOCK_SYSTRAY_TASK); |
24 |
|
25 |
if (config.blink_on_events) { |
26 |
@@ -532,9 +530,9 @@ |
27 |
a->time = -1; |
28 |
a->date = 0; |
29 |
if (textdesc != NULL) |
30 |
- a->notify = notify_notification_new (_("Alarm warning!"), textdesc, GTK_STOCK_DIALOG_INFO, NULL); |
31 |
+ a->notify = notify_notification_new (_("Alarm warning!"), textdesc, GTK_STOCK_DIALOG_INFO); |
32 |
else |
33 |
- a->notify = notify_notification_new (_("Alarm warning!"), text, GTK_STOCK_DIALOG_INFO, NULL); |
34 |
+ a->notify = notify_notification_new (_("Alarm warning!"), text, GTK_STOCK_DIALOG_INFO); |
35 |
|
36 |
notify_notification_set_timeout (a->notify, NOTIFY_EXPIRES_NEVER); |
37 |
notify_notification_set_urgency (a->notify, NOTIFY_URGENCY_NORMAL); |
38 |
@@ -545,9 +543,7 @@ |
39 |
#endif /* HAVE_LIBNOTIFY */ |
40 |
|
41 |
if (gtk_status_icon_get_visible (appGUI->osmo_trayicon)) { |
42 |
-#ifdef HAVE_LIBNOTIFY |
43 |
- notify_notification_attach_to_status_icon (a->notify, appGUI->osmo_trayicon); |
44 |
-#endif /* HAVE_LIBNOTIFY */ |
45 |
+ |
46 |
gtk_status_icon_set_from_stock (appGUI->osmo_trayicon, OSMO_STOCK_SYSTRAY_TASK); |
47 |
|
48 |
if (config.blink_on_events) { |