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 609127 - Add API to set _NET_WM_ICON_GEOMETRY for a GtkWindow (minimize to status icon animation)
Add API to set _NET_WM_ICON_GEOMETRY for a GtkWindow (minimize to status icon...
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkStatusIcon
2.19.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-02-05 21:45 UTC by Thomas Perl
Modified: 2014-08-30 05:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Perl 2010-02-05 21:45:36 UTC
Some end-user applications need to provide "minimize to tray" functionality. In order for the window manager to do the correct animation towards the status icon, the window that is to be minimized needs to have the _NET_WM_ICON_GEOMETRY hint set correctly (libwnck provides "wnck_window_set_icon_geometry"). This is currently not possible or only possibly by using direct calls to the X11 library (XChangeProperty).

I propose a new API function for GtkStatusIcon:

 gtk_status_icon_set_gtk_window_icon_geometry(GtkStatusIcon* i, GtkWindow* w);

This function should take the geometry of the GtkStatusIcon "i" and set the X11 WM hint _NET_WM_ICON_GEOMETRY so that a call to gtk_window_iconify() will have the window manager show a animation towards the GtkStatusIcon.

Currently, applications like Rhythmbox work with XChangeProperty (see e.g. "set_icon_geometry" in "rb-status-icon-plugin.c" in Rhythmbox's source code), and it's even more difficult if you want to have your application behave like this from PyGTK.
Comment 1 Matthias Clasen 2014-08-30 05:20:36 UTC
GtkStatusIcon has been deprecated