Languages

libnotify

[Genie] Libnotify example

4
Your rating: None Average: 4 (1 vote)
[indent=4]
 
/* Build with valac --pkg gtk+-2.0 --pkg libnotify yourfile.gs */
 
uses
    Gtk
    Notify
 
init
    Gtk.init (ref args)
    var test = new NotifyTest ()
    Notify.init("test")
    test.show_all ()
    test.low_clicked ()
    test.normal_clicked ()
    test.critical_clicked ()
    Gtk.main ()
 
class NotifyTest : Window
 
    init
        title = "Simple Notify Test"
        default_height = 45
        default_width = 115
        window_position = WindowPosition.CENTER
        destroy += exit_app
        var low_button = new Button.with_label("LOW")
 
Syndicate content