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 382178 - GtkStatusIcon stay in a separate window when notification area is restarted
GtkStatusIcon stay in a separate window when notification area is restarted
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 388598 (view as bug list)
Depends on:
Blocks: 375377 388598
 
 
Reported: 2006-12-04 08:53 UTC by Pascal Terjan
Modified: 2007-04-10 19:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Pascal Terjan 2006-12-04 08:53:38 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.
Comment 1 Christian Persch 2006-12-04 12:57:32 UTC
Mentioned in bug 160132 comment 25 too...
Comment 2 Martyn Russell 2006-12-25 16:18:46 UTC
*** Bug 388598 has been marked as a duplicate of this bug. ***
Comment 3 Christian Persch 2006-12-25 18:59:10 UTC
My patch in bug 340110 fixes this.
Comment 4 Christian Persch 2007-01-27 12:40:23 UTC
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.
Comment 5 Jonh Wendell 2007-03-14 00:48:56 UTC
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.
Comment 6 Matthias Clasen 2007-03-14 02:37:33 UTC
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
Comment 7 Pascal Terjan 2007-03-14 06:40:31 UTC
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.
Comment 8 Jonh Wendell 2007-03-14 11:27:13 UTC
Exactly the same behavior as Pascal Terjan, but with gtk 2.10.10
Comment 9 Matthias Clasen 2007-03-14 13:18:28 UTC
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.
Comment 10 Jonh Wendell 2007-03-14 13:24:42 UTC
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.
Comment 11 Pascal Terjan 2007-04-10 18:09:59 UTC
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.
Comment 12 Pascal Terjan 2007-04-10 18:25:21 UTC
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.
Comment 13 Jonh Wendell 2007-04-10 19:35:25 UTC
Pascal, are you using svn version of gtk? This issue is supposed to be fixed in svn, not in 2.10.*
Comment 14 Pascal Terjan 2007-04-10 19:42:11 UTC
OK, I'm using 2.10