After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 582052 - Gnome-Shell ignores banshee (trayicon)
Gnome-Shell ignores banshee (trayicon)
Status: RESOLVED DUPLICATE of bug 529023
Product: banshee
Classification: Other
Component: general
1.4.3
Other Linux
: Normal normal
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-10 10:32 UTC by Stefan Ebner
Modified: 2009-05-10 21:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Ebner 2009-05-10 10:32:07 UTC
Please describe the problem:
Let's say you use your Pc normally like always. In the gnome-panel are icons from Xchat, pidgin ,...
You want to listen to music and start banshee. The banshee icon appears and then you decide to start gnome-shell. Xchat, pidgin and the rest are added to the gnome-shell panel but not the banshee one, so if you want to close banshee you have to kill it manually in the gnome-terminal. Also if you kill gnome-shell the tray icon won't appear in the normal gnome-panel. Message:

sebner@ubuntu:~/gnome-shell/source/gnome-shell/src$ ** (gnome-panel:30211): DEBUG: Adding applet 0.
** (gnome-panel:30211): DEBUG: Initialized Panel Applet Signaler.
** (gnome-panel:30211): DEBUG: Adding applet 1.
** (gnome-panel:30211): DEBUG: Adding applet 2.
** (gnome-panel:30211): DEBUG: Adding applet 3.
** (gnome-panel:30211): DEBUG: Adding applet 4.
** (gnome-panel:30211): DEBUG: Adding applet 5.
** (gnome-panel:30211): DEBUG: Adding applet 6.
** (gnome-panel:30211): DEBUG: Adding applet 7.
** (gnome-panel:30211): DEBUG: Adding applet 8.
** (gnome-panel:30211): DEBUG: Adding applet 9.
** (gnome-panel:30211): DEBUG: Adding applet 10.
** (gnome-panel:30211): DEBUG: Adding applet 11.
** (gnome-panel:30211): DEBUG: Adding applet 12.
** (gnome-panel:30211): DEBUG: Adding applet 13.
** (gnome-panel:30211): DEBUG: Adding applet 14.

(gnome-panel:30211): libglade-WARNING **: Unexpected element <requires-version> inside <glade-interface>.
** (gnome-panel:30211): DEBUG: Adding applet 15.

I suppose applet 15 might be the banshee one?



Steps to reproduce:
1. Start banshee (the trayicon will appear)
2. Start gnome-shell and you'll see that the banshee tray icon will not be added
   like the other ones.
3. If you kill the gnome-shell and it falls back to the normal gnome-desktop    also there the banshee trayicon is missing. 


Actual results:
Banshee icon is missing after gnome-shell started and after you exit gnome-shell

Expected results:
The banshee icon should appear when you start gnome-shell and should also be in the normal gnome-panel when you exit gnome-shell

Does this happen every time?
Yes.

Other information:
Comment 1 Stefan Ebner 2009-05-10 10:37:20 UTC
Done more testing:

If you start gnome-shell first and then start banshee the tray icon appears
as expected *but* if you exit gnome-shell and it falls back to normal gnome-desktop the banshee icon is missing, see libglade WARNING above.
Comment 2 Dan Winship 2009-05-10 11:51:16 UTC
(In reply to comment #1)
> If you start gnome-shell first and then start banshee the tray icon appears
> as expected *but* if you exit gnome-shell and it falls back to normal
> gnome-desktop the banshee icon is missing, see libglade WARNING above.

This is a banshee (or gnome-sharp?) bug then. The original EggTrayIcon code didn't do the right thing if the notification are went away, and would end up being destroyed for good, which is what you're describing. Banshee (gnome-sharp?) needs a newer import of the EggTrayIcon code (or to use GtkStatusIcon instead).
Comment 3 Stefan Ebner 2009-05-10 15:19:20 UTC
Thx for the hint and the reassigning to banshee!
Comment 4 Bertrand Lorentz 2009-05-10 17:42:45 UTC
I think this is the same problem as bug #529023. Gnome-shell removes or replaces the notification area, I guess ?
If so, the effect is probably the same as removing and re-adding it.

Banshee uses some C# code for its tray icon (in X11NotificationArea.cs and X11NotificationAreaBox.cs), probably originated from EggTrayIcon.
I tried to find the change in EggTrayIcon Dan is referring to, but I couldn't find it.
Comment 5 Dan Winship 2009-05-10 18:43:40 UTC
(In reply to comment #4)
> I think this is the same problem as bug #529023. Gnome-shell removes or
> replaces the notification area, I guess ?

Yes, it's the same. (GNOME Shell replaces the entire panel, including the notification area.)

> Banshee uses some C# code for its tray icon (in X11NotificationArea.cs and
> X11NotificationAreaBox.cs), probably originated from EggTrayIcon.
> I tried to find the change in EggTrayIcon Dan is referring to, but I couldn't
> find it.

um... might be the patch for bug 166143? (3e4e06be3f601d192ff411044fcf97c744614fc8). Though that caused a crash...

it's also possible that it's just something miscellaneous that was part of the transparency patch (9759de4aee474cef04c2aa4f6de075ae63e77ab2, bug 150726). I think Banshee has transparent icon support but it might have gotten a port of an earlier state of that patch rather than the latest version...

It's also possible that it was something that went into GtkPlug or GtkSocket but which the banshee widget is not inheriting for some reason?

Sorry, the bug/fix was a long time ago, I don't remember the details any more.
Comment 6 Bertrand Lorentz 2009-05-10 21:25:10 UTC
Dan, thanks for trying to find the fix !
Looks like those two commits are in the code used in banshee.

Bug #315996 seems to indicate that EggTrayIcon didn't re-add icons after the panel was restarted, so we might be on the wrong track.

I'm marking this as a duplicate of bug #529023, and I'll add the relevant info there.

*** This bug has been marked as a duplicate of 529023 ***