xpra icon
Bug tracker and wiki

Opened 4 years ago

Last modified 3 years ago

#405 assigned enhancement

better native tray support for *nix

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: minor Milestone: future
Component: client Version:
Keywords: linux Cc: onlyjob@…

Description

We already have native X11 code for dealing with the system tray server side (see xpra/x11/gtk_x11/tray.py), but at the moment only win32 has native tray support (see xpra/platform/win32/win32_tray.py).

The gtk.StatusIcon we use is too limited:

  • does not let us catch hover events,
  • does not let us catch individual clicks (only "activate" and "popup" events)

It shouldn't be too hard to do better than that. Either with native X11 code or with another/better tookit (see #388 for Qt)

Attachments (3)

qttray.py (518 bytes) - added by Antoine Martin 4 years ago.
simple qt tray example
wxtray.py (1.1 KB) - added by Antoine Martin 4 years ago.
simple wx tray example
pythonicon.py (3.7 KB) - added by Antoine Martin 4 years ago.
simple gtk + xlib tray example (GPL taken from awn-extras-applets)

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by Antoine Martin

Attachment: qttray.py added

simple qt tray example

Changed 4 years ago by Antoine Martin

Attachment: wxtray.py added

simple wx tray example

Changed 4 years ago by Antoine Martin

Attachment: pythonicon.py added

simple gtk + xlib tray example (GPL taken from awn-extras-applets)

comment:1 Changed 4 years ago by Antoine Martin

Milestone: future0.12
Owner: changed from Antoine Martin to Antoine Martin
Status: newassigned
Summary: better native tray support for Linuxbetter native tray support for *nix

win32 has this already, it would be a shame if *nix did not!


Let's try not to undo #479 when we do it.

Last edited 4 years ago by Antoine Martin (previous) (diff)

comment:2 Changed 4 years ago by Antoine Martin

Milestone: 0.120.13

Too late for 0.12

comment:3 Changed 4 years ago by Antoine Martin

Milestone: 0.130.14

comment:4 Changed 3 years ago by onlyjob

Cc: onlyjob@… added

comment:5 Changed 3 years ago by Antoine Martin

Milestone: 0.15future

re-scheduling

Note: See TracTickets for help on using tickets.