Hi all, I'm the developer of Notifications Alert extension[1].
I was updating it to work with 3.6, testing it on ubuntu-gnome-remix[2] that I downloaded today (I'm on Debian Testing and it will take a long time before I can play with 3.6 here =P). On 3.2 and 3.4, what my extension did was: Every time a notifications was created, destroyed or had it's count updated, I checked if any source had '_counterBin' visible and it's count was != '0'. That to check for chat notifications. To check for simple notifications (notify-send alikes), I checked each 'source.notifications' and if it had one not resident, it would get alerted too (excluding resident to not notify for Rhythmbox notifications for example, that doesn't go away on clicking). Taking a look at the source code[3], I noticed that there's a new api for notification's source, 'unseenCount'. When I first look at it, I thought it would be perfect for what I want (to check for chat notifications). If a notification has unseen notifications, it needs to get alerted (and vice-versa). It worked ok for chat notifications, and for simple notifications (notify-send alikes), I just continued to check for not resident notifications. But something strange happened: Rhythmbox's notification had it's 'source.unseenCount' returning 1 always. Even if I click on the notification and then on the notification's popup, it never gets acknowledged. Is this the expected behavior or is this a bug? What would be the right way to check what I'm checking? To help, this is the check I'm doing[4]. I'm using 'source.countVisible' to check, but I don't think that it's the right thing to do.. Thanks in advance and sorry for my poor english (I'm Brazilian), [1] https://extensions.gnome.org/extension/258 [2] ftp://ftp.gnome.org/pub/gnome/misc/ubuntu-gnome-remix/ [3] http://git.gnome.org/browse/gnome-shell/tree/js/ui/messageTray.js [4] https://github.com/hackedbellini/Gnome-Shell-Notifications-Alert/blob/master/src/extension.js#L106 -- Thiago Bellini | http://hackedbellini.org “Real knowledge is to know the extent of one's ignorance.” - Confucius _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list