Comment 31 for bug 403135

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 403135] Re: Notification area icon wrongly rendered/has a black background (multiple apps)

On Saturday 31,October,2009 06:17 PM, Cyberkilla wrote:
> Apparently it is related to the object applications use to create their
> status icon.
>
> I've heard mentions of "GTKStatusIcon" (supposedly the solution), "GTKTrayIcon" and something about an eggicon.
> Presumably, these are all interfaces to make the notification area icons, with GTKStatusIcon tending to be the thing cited as the answer in most of the forums and mailing lists I've seen.
>
> I don't pretend to know what all of that means, but I do know that it
> was working fine until Karmic. If Banshee was using method X to create a
> tray icon in Jaunty, it still behaves the same way in Karmic! The
> logical conclusion is that something has changed _outside_ of the
> applications which are reporting the bug.
>
> Some feedback from someone who knows anything about this would certainly
> be appreciated - by everyone here, no doubt.
>
Regarding Banshee and Gtk.StatusIcon, I've poked around Banshee's source code
and noticed that Banshee has support for using a "X11NotificationAreaBox" and a
"GtkNotificationAreaBox", both of which are internal classes within the
Banshee.NotificationArea extension.

The X11NotificationAreaBox is the one that's generally used, and the
GtkNotificationAreaBox (uses Gtk.StatusIcon) is the one that's used if
X11NotificationAreaBox fails to load. I've tried reversing the order, and can
confirm that this resolves this bug, but with a caveat -- GtkNotificationAreaBox
does not have support for the Notification Area popup that appears showing the
album art, artist and title, instead giving a regular text tooltip.

Digging more around Gtk.StatusIcon, it seems that gtk+ >= 2.16 should have
features required to port over all Banshee's fancy notification area icon
features, but there isn't a Gtk# 2.16 yet[1].

[1] https://bugzilla.gnome.org/show_bug.cgi?id=529023#c8

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer