GNOME Bugzilla – Bug 382178
GtkStatusIcon stay in a separate window when notification area is restarted
Last modified: 2007-04-10 19:42:11 UTC
To reproduce, start applications using GtkStatusIcon, like gnome-power-manager or gnomeicu and kill the gnome-panel. Apps using egg used to handle this by connecting to the signal 'destroy' and re-creating the icon in the handler (rhythmbox, liferea, ...). AFAICS GtkStatusIcon does not offer any notification of the unembedding so such workaround is not possible. Anyway, handling this automatically in GtkStatusIcon would be better.
Mentioned in bug 160132 comment 25 too...
*** Bug 388598 has been marked as a duplicate of this bug. ***
My patch in bug 340110 fixes this.
The patch in bug 340110 was committed, and I cannot reproduce this anymore; closing. If you can reproduce it with current gtk+ svn trunk, please reopen this bug.
This patch apparently did not get in 2.10.10. I can't see any reference to it in Changelog. Is that true? Why? I'm using gtk 2.10.10 (released today in Ubuntu feisty) and am with same issue.
This works fine in my testing running teststatusicon from 2.10.10, and killing the panel, the statusicon gets picked up by the restarted panel
Still using 2.10.9 and testing with X-Chat + gnome-power-manager + Mugshot. If I kill the panel and it gets restarted, the icons stay in separate window. If I do gnome-session-remove gnome-panel; gnome-panel then they re-attach fine.
Exactly the same behavior as Pascal Terjan, but with gtk 2.10.10
I don't know if xchat-gnome and mugshot use GtkStatusIcon or some older version of EggTrayIcon, but gnom-power-manager works fine in my testing.
I'm using xchat (not xchat-gnome) and yes, it uses GtkStatusIcon. I've also done a small program in C which tests gtkstatusicon, and it has the same behavior as xchat.
I now have a strange behaviour : - If I give focus to the small window, the icon jumps back to the notification area, but the wind remains, empty. - If I minimize the window, the icon disappears from the tray - The icon goes back to the tray as soon as I unminimize the window So it looks like it goes back to the tray but it's visibility is still the one of the window, and the window is still there.
The icons also get hidden when I'm not on the desktop where the window is but are OK when they get behind another window.
Pascal, are you using svn version of gtk? This issue is supposed to be fixed in svn, not in 2.10.*
OK, I'm using 2.10