GNOME Bugzilla – Bug 555231
GtkStatusIcon docs unclear about space allocation for set_visible(false)
Last modified: 2014-08-30 05:20:43 UTC
API documentation doesn't state whether an icon should just became invisible or whether its space allocation in the systray should also disappear: http://library.gnome.org/devel/gtk/2.14/GtkStatusIcon.html#gtk-status-icon-set-visible See https://bugs.maemo.org/show_bug.cgi?id=3769 for more background.
Why do you think the api docs should go into that detail ? They are api docs, not specifications for systray behaviour details...
I think the point here is the difference of behaviour between a GtkStatusIcon and a GtkWidget. It is only intuitive to expect the same semantics, even if that is practically not the case. Especially since tray icons depend on platform implementations to some extend I would fine it useful to give a hint about how it works. Something like "Note that the status icon might not clear its allocation unlike a GtkWidget when hidden" should be sufficient.
I actually looked a bit around and if my research was any good you actually *can* expect status icons to behave like widgets with regard to size. If somebody can confirm this I figure the bug can be closed.
GtkStatusIcon has been deprecated