mvz / gir_ffi-gtk

GirFFI-based bindings for Gtk+. Supports both Gtk+ 2 and Gtk+ 3
GNU Lesser General Public License v2.1
19 stars 7 forks source link

Update 05_notification.rb #22

Closed jinyeow closed 7 years ago

jinyeow commented 7 years ago

Notify::Notification#add_action spawns an error when run as per the example with 5 arguments ("test", "Test", BLOCK, nil nil). After some debugging through pry, I found that it only takes 2 arguments + a block as callback. I updated the example script so that it works now.

mvz commented 7 years ago

This example had not been updated to the improved syntax for this. Good catch, thanks!