[balsa/gtk3] GNOME Goal: Notification Sources
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] GNOME Goal: Notification Sources
- Date: Wed, 29 May 2013 21:10:24 +0000 (UTC)
commit 723dda664c9085a81006d5d787e48cc4b7e4f2d0
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed May 29 17:10:01 2013 -0400
GNOME Goal: Notification Sources
* balsa.desktop.in.in: add X-GNOME-UsesNotifications=true
* libbalsa/information.c (libbalsa_information_varg): set
"desktop-entry" hint for NotifyNotification.
* src/main-window.c: ditto.
ChangeLog | 9 +++++++++
balsa.desktop.in.in | 1 +
libbalsa/information.c | 2 ++
src/main-window.c | 3 +++
4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d9d631a..db0eb4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-05-29 Peter Bloomfield
+
+ GNOME Goal: Notification Sources
+
+ * balsa.desktop.in.in: add X-GNOME-UsesNotifications=true
+ * libbalsa/information.c (libbalsa_information_varg): set
+ "desktop-entry" hint for NotifyNotification.
+ * src/main-window.c: ditto.
+
2013-05-28 Peter Bloomfield
* configure.ac: check GtkSpell version, and avoid explicit
diff --git a/balsa.desktop.in.in b/balsa.desktop.in.in
index f8d8002..5d5f199 100644
--- a/balsa.desktop.in.in
+++ b/balsa.desktop.in.in
@@ -10,3 +10,4 @@ Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Office;Email;
+X-GNOME-UsesNotifications=true
diff --git a/libbalsa/information.c b/libbalsa/information.c
index 9b4a862..c6c6a63 100644
--- a/libbalsa/information.c
+++ b/libbalsa/information.c
@@ -124,6 +124,8 @@ libbalsa_information_varg(GtkWindow *parent, LibBalsaInformationType type,
#if HAVE_NOTIFY >= 7
note = notify_notification_new("Balsa", escaped->str, icon_str);
+ notify_notification_set_hint(note, "desktop-entry",
+ g_variant_new_string("balsa"));
#else
/* prior to 0.7.0 */
note = notify_notification_new("Balsa", escaped->str, icon_str, NULL);
diff --git a/src/main-window.c b/src/main-window.c
index dac33a2..073e366 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -3568,6 +3568,9 @@ bw_display_new_mail_notification(int num_new, int has_new)
#if HAVE_NOTIFY >=7
balsa_app.main_window->new_mail_note =
notify_notification_new("Balsa", NULL, NULL);
+ notify_notification_set_hint(balsa_app.main_window->
+ new_mail_note, "desktop-entry",
+ g_variant_new_string("balsa"));
#else
balsa_app.main_window->new_mail_note =
notify_notification_new("Balsa", NULL, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]