Package: pidgin-libnotify
Version: 0.14-6
Severity: minor
Tags: patch

--- Please enter the report below this line. ---

notification-daemon somewhere around 0.6.0 release added a 'dock' for 
notifications,
where popups are placed after their timeout expires. User can access the dock by
clicking an envelope icon on gnome panel to view missed events and than has to 
close
each of them manually.

This is useful for important events that need user's attention even after their 
timeout
expired, but can be very annoying with low priority notifications that happen 
very often
just like pidgin-libnotify incoming message notifications. Each received IM 
places a single
bubble to the dock that is then flooded with many uninteresting items and forces
user to open it from time to time and "clean the trash". Not only this is 
distracting
but user can even overlook some more important notification amidst the tons of 
IM popups.

I suggest to add "transient" hint to pidgin notifications, which forces 
notification daemon
to bypass dock and remove the message immediately after its timeout expires. 
User is still
notified of an incoming message by blinking Pidgin's icon on the panel.

The patch expects changes from #640728 to be applied before, reworking it is 
trivial.

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.0.0-1-amd64

Debian Release: wheezy/sid
  500 unstable        ftp.cz.debian.org
  500 unstable        emdebian.org
  500 testing         www.debian-multimedia.org
  500 testing         security.debian.org
  500 testing         ftp.cz.debian.org
    1 experimental    ftp.debian.org

--- Package information. ---
Depends                  (Version) | Installed
==================================-+-============
libatk1.0-0            (>= 1.12.4) | 2.0.1-2
libc6                   (>= 2.2.5) | 2.13-18
libcairo2               (>= 1.2.4) | 1.10.2-6.1
libfontconfig1          (>= 2.8.0) | 2.8.0-3
libfreetype6            (>= 2.2.1) | 2.4.6-2
libgdk-pixbuf2.0-0     (>= 2.22.0) | 2.23.5-3
libglib2.0-0           (>= 2.28.0) | 2.28.6-1
libgtk2.0-0             (>= 2.8.0) | 2.24.4-3
libnotify4              (>= 0.7.0) | 0.7.3-2
libpango1.0-0          (>= 1.14.0) | 1.28.4-3
pidgin                    (<< 3.0) | 2.10.0-1
pidgin                   (>= 2.10) | 2.10.0-1


Package's Recommends field is empty.

Package's Suggests field is empty.



>From 09e785724200120776a418566c5e8630d7afda36 Mon Sep 17 00:00:00 2001
From: Jakub Adam <[email protected]>
Date: Wed, 7 Sep 2011 21:47:22 +0200
Subject: [PATCH] Set "transient" hint on event notifications

It is better to remove them automatically from the stack than forcing
user to clear them manually whenever new message arrives.
---
 src/pidgin-libnotify.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/pidgin-libnotify.c b/src/pidgin-libnotify.c
index 161f8f9..bd603e3 100644
--- a/src/pidgin-libnotify.c
+++ b/src/pidgin-libnotify.c
@@ -338,6 +338,9 @@ notify (const gchar *title,
 		notify_notification_add_action (notification, "show", _("Show"), action_cb, NULL, NULL);
 	}
 
+	notify_notification_set_hint (notification, "transient",
+								  g_variant_new_boolean (TRUE));
+
 	notification_show (notification);
 }
 
-- 
1.7.5.4

Reply via email to