Sha256: 118a7f57cdebbfa055b08e9a248d452b80c4cfac7e1fdd17d9eeff999682ae4f
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
#!/usr/bin/env ruby =begin action.rb Luca Russo <vargolo@gmail.com> Copyright (LGPL) 2006 - 2010 ruby-libnotify action example =end begin require 'RNotify' rescue LoadError require 'rubygems' require 'RNotify' end Gtk.init Notify.init("Test3") test = Notify::Notification.new("Test 3", "action test", nil, nil) test.timeout= Notify::Notification::EXPIRES_NEVER test.signal_connect("closed") { Gtk.main_quit } test.add_action("Click Me action", "Click Me!", "bye!!") do |action, data| puts "#{action} - #{data}" Gtk.main_quit end test.show Gtk.main test.clear_actions test.close Notify.uninit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-libnotify-0.4.1 | examples/action.rb |