jhass / crystal-gobject

gobject-introspection for Crystal
BSD 3-Clause "New" or "Revised" License
127 stars 13 forks source link

GAction example #27

Closed thiagojedi closed 4 years ago

thiagojedi commented 4 years ago

Adding an example using GAction and Gtk::Builder.

There was an error in generated/gio/simple_action.cr that I have to go around. I figured I shouldn't change the generated folder as it should be... well... generated again. So I override the method in gio.cr.

Resolves #26

jhass commented 4 years ago

Thank you! I cherry picked the example as 66f9482f156b031418d9730a7d5c77c8030c95ac

Instead of the patch to the generated binding I fixed the generator to not do these mistakes anymore: 1a3b71c4d1109b415d67372198d0abd5218cd1f2