Opened 3 years ago

Last modified 4 days ago

#16993 new patch

Port finch's pietray to pydbus + PyGI + GTK3 + StatusNotifierItem

Reported by: lew21 Owned by: QuLogic
Milestone: Patches Needing Review Component: finch (gnt/ncurses)
Version: 2.10.12 Keywords:


Originally, I've planned to port pietray to pydbus only (because #16992). But:

  1. Looks like it's impossible to use PyGI (required by pydbus) and PyGTK in the same script. Therefore, I had to port it to PyGI.
  1. PyGI bindings for GTK2 are quite bad - for example GtkMenu?.popup() does not work. Therefore, I had to port it to GTK3.
  1. GtkStatusIcon? has less features, and is deprecated, in GTK3. Also, the StatusNotifierItem? protocol is quite a bit better than the old XEmbed-based one. Therefore, I replaced GtkStatusIcon? with a StatusNotifierItem? implementation.

The port works better for me (on KDE) than the original (which was missing an icon... it was just an empty space in the tray). However, I didn't test it on Unity nor GNOME (does GNOME3 support tray icons at all?).

Attachments (1)

finch-pydbus.patch (11.6 KB) - added by lew21 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by lew21

comment:1 Changed 3 years ago by Robby

  • Milestone set to Patches Needing Review

comment:2 Changed 4 days ago by grim

  • Owner changed from sadrul to QuLogic
Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!