www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Status icon on Linux

reply Chris Wright <dhasenan gmail.com> writes:
I want a status icon for a Linux application. gtk.StatusIcon notes that 
it's deprecated (and doesn't work on MATE 1.8.2).

What should I be using?
Feb 19 2016
parent reply Mike Wey <mike-wey example.com> writes:
On 02/20/2016 06:13 AM, Chris Wright wrote:
 I want a status icon for a Linux application. gtk.StatusIcon notes that
 it's deprecated (and doesn't work on MATE 1.8.2).

 What should I be using?
The GTK developers have decided that we don't need no status icon, it would presumably mess up there beautiful gnome shell design. The documentation states we should use notifications, that means i'll probably need to add libnotify bindings to GtkD. Though sending notifications using DBus is also possible. (https://developer.gnome.org/notification-spec/) Depending on the use case using notifications might or might not be useful. -- Mike Wey
Feb 20 2016
parent reply Gerald <me me.com> writes:
On Saturday, 20 February 2016 at 11:36:11 UTC, Mike Wey wrote:
 The documentation states we should use notifications, that 
 means i'll probably need to add libnotify bindings to GtkD. 
 Though sending notifications using DBus is also possible. 
 (https://developer.gnome.org/notification-spec/)

 Depending on the use case using notifications might or might 
 not be useful.
Would the support for libnotify be for those applications not using gtk.Application since it already supports sending notifications via sendNotification. I'm using it in Terminix and it works quite well.
Feb 20 2016
parent Mike Wey <mike-wey example.com> writes:
On 02/20/2016 06:32 PM, Gerald wrote:
 On Saturday, 20 February 2016 at 11:36:11 UTC, Mike Wey wrote:
 The documentation states we should use notifications, that means i'll
 probably need to add libnotify bindings to GtkD. Though sending
 notifications using DBus is also possible.
 (https://developer.gnome.org/notification-spec/)

 Depending on the use case using notifications might or might not be
 useful.
Would the support for libnotify be for those applications not using gtk.Application since it already supports sending notifications via sendNotification. I'm using it in Terminix and it works quite well.
A search of the GTK documentation only gave me results form libnotify so i missed the GApplication / GNotification functionality. -- Mike Wey
Feb 21 2016