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 342315 - GtkStatusIcon "escape hatch" for x11
GtkStatusIcon "escape hatch" for x11
Status: RESOLVED DUPLICATE of bug 341450
Product: gtk+
Classification: Platform
Component: Widget: Other
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-05-19 03:10 UTC by Havoc Pennington
Modified: 2006-05-19 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Havoc Pennington 2006-05-19 03:10:46 UTC
I'm wanting to get the position and orientation of the status icon ... this isn't possible on Windows but is easy on X11.

However, to do it even on Linux I'd have to cut-and-paste all of GtkStatusIcon, or do some gross hack like get_toplevels() then scan for the tray icon widget... or maybe watch for map events in a gdk filter ... going downhill quickly ;-)

What's needed is something like 
GdkWindow* gtk_status_icon_x11_get_window()

Though that doesn't quite work since you would also need signals on realize/unrealize of said window or something.

Another approach is something like:
 
gtk_status_icon_x11_get_orientation()
gtk_status_icon_x11_get_position()

Though, the "get window" approach might be simpler and allow people to experiment with improving the tray icon spec. I guess it depends on whether people think the basic operation of the spec (involving embedding an X window) is likely to change.

Any pre-existing discussion on this topic?
Comment 1 Christian Persch 2006-05-19 13:45:11 UTC
I filed bug 341450 for the same reasons...
Comment 2 Matthias Clasen 2006-05-19 16:26:14 UTC
We definitively need something here.

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