[balsa] Close the notification



commit ac7cd1b4e948cb39133adaaf0c64cb4c35049a64
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Jan 17 15:48:47 2010 -0500

    Close the notification
    
    	* src/main-window.c: close the new-mail notification instead of
    	showing it with a 1 millisecond time-out.

 ChangeLog         |    5 +++++
 src/main-window.c |    7 ++-----
 2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d542dd2..6df9d06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-17  Peter Bloomfield
+
+	* src/main-window.c: close the new-mail notification instead of
+	showing it with a 1 millisecond time-out.
+
 2010-01-16  Peter Bloomfield
 
 	* src/balsa-app.h: new member NMState nm_state.
diff --git a/src/main-window.c b/src/main-window.c
index 2006da6..4a1165c 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -1615,11 +1615,8 @@ bw_is_active_notify(GObject * gobject, GParamSpec * pspec,
         BalsaWindow *window = BALSA_WINDOW(gobject);
 
 #ifdef HAVE_NOTIFY
-        if (window->new_mail_note) {
-            /* Setting 0 would mean never timeout! */
-            notify_notification_set_timeout(window->new_mail_note, 1);
-            notify_notification_show(window->new_mail_note, NULL);
-        }
+        if (window->new_mail_note)
+            notify_notification_close(window->new_mail_note, NULL);
 #endif                          /* HAVE_NOTIFY */
         if (window->new_mail_tray)
             gtk_status_icon_set_visible(window->new_mail_tray, FALSE);



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