3

My vision of the program: icon in tray, left click on icon opens a window with shutdown, reboot, etc. buttons.

The new Gnome specification advises to use notifications instead.

StatusIcon >! (Deprecated since version 3.14: Use notifications)

Unfortunately, I didn't find how Notify.Notification can be displayed in the tray. The only thing that I found is AppIndicator3.Indicator, but its constructor can only take a Gtk.Menu, which is unsuitable.

Which classes may I use?

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479
srghma
  • 4,770
  • 2
  • 38
  • 54
  • 1
    Thank you, Frederic, next time I will be more attentive to grammar – srghma May 28 '15 at 19:55
  • 2
    Unfortunately no one has written an alternative to GtkStatusIcon yet. While it may be deprecated, you can still use it if you really want, but you'll have to investigate recreating it yourself if you need a status icon that isn't restricted to the limitations of the notifications API and really don't want to use deprecated APIs. – andlabs May 29 '15 at 00:34
  • @andlabs, your comment save many hours of my time, thank you – srghma May 29 '15 at 08:57

1 Answers1

0

I had used GtkStatusIcon due to comments

srghma
  • 4,770
  • 2
  • 38
  • 54