examples/action.rb in ruby-libnotify-0.4.1.1 vs examples/action.rb in ruby-libnotify-0.5.0
- old
+ new
@@ -19,10 +19,10 @@
end
Gtk.init
Notify.init("Test3")
-test = Notify::Notification.new("Test 3", "action test", nil, nil)
+test = Notify::Notification.new("Test 3", "action test", 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}"