examples/05_notification.rb in gir_ffi-0.2.3 vs examples/05_notification.rb in gir_ffi-0.3.0

- old
+ new

@@ -10,11 +10,11 @@ Gtk.init Notify.init "notification test" # Basic set up of the notification. nf = Notify::Notification.new "Hello!", "Hi there.", "gtk-dialog-info" -nf.set_timeout 3000 -nf.set_urgency :critical +nf.timeout = 3000 +nf.urgency = :critical # Show a button 'Test' in the notification, with a callback function. nf.add_action "test", "Test", Proc.new { |obj, action, user_data| puts "Action #{action} clicked." }, nil, nil