Can Ruby use GTK :: StatusIcon to find an existing systray icon?

I am trying to automate right clicking a systemtray icon using ruby. After searching the web, I find that GTK :: StatusIcon can be used to create the NEW systray icon and menu, etc. However, I haven't found a way to identify the current / existing icons. From the search results, all messages are displayed on how to create a new statusIcon like this:

si = Gtk::StatusIcon.new
si.stock = Gtk::Stock::DAILOG_INFO
si.tooltiop ='StatusIcon'

      

Can I use Gtk :: StatusIcon to find / click the icon of an existing systray?

I am new to GUI and GTK programming. Can anyone point me in the right direction?

Thanks in advance!

+3


source to share





All Articles