Skip to content

Instantly share code, notes, and snippets.

@voldyman
Created April 12, 2013 12:22
Show Gist options
  • Save voldyman/5371648 to your computer and use it in GitHub Desktop.
Save voldyman/5371648 to your computer and use it in GitHub Desktop.
// valac --pkg gtk+-3.0 indicator-test.vala
using Gtk;
void main (string[] args) {
Gtk.init (ref args);
var status_icon = new Gtk.StatusIcon.from_stock (Gtk.Stock.MEDIA_PLAY);
status_icon.set_tooltip_text ("Adjust Sound");
status_icon.activate.connect (() => {
print ("clicked");
});
status_icon.set_visible (true);
Gtk.main ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment