Created
April 12, 2013 12:22
-
-
Save voldyman/5371648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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