[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Creating / updating an icon is Xorg's System Tray.
- From: Laurent FAILLIE <l_faillie@...>
- Date: Sun, 8 Jul 2012 15:05:09 -0700 (PDT)
So an exanple code is :
local lgi = require 'lgi'
local Gtk = lgi.Gtk
local sticn = Gtk.StatusIcon {
stock = Gtk.STOCK_YES,
tooltip_text = 'Hello guys !',
visible = true,
_on_button_press_event_ = function () print("Click !") end, -- For every buttons
_on_button_release_event_ = function () print("Released") end, -- Idem
_on_activate_ = function () print("Activated") end -- Idem for left one
}
Gtk.main()
Hoping it can help someone ...
Bye
Laurent