I have a problem with the inheritance of a Gtk::Dialog class

Hi,

I’m trying to call a super method, but for some reason it requires
hash instead of a string.
All information: http://pastie.org/612549

Martin S

Le jeudi 10 septembre 2009 à 20:29 +0300, Martin Sarapik a écrit :

Hi,

I’m trying to call a super method, but for some reason it requires
hash instead of a string.
All information: http://pastie.org/612549

This is because you used type_register

super({:title=>‘New Person’}) should work

Sorry but it’s very late now so I won’t explain more before going to
bed :slight_smile:

Le vendredi 11 septembre 2009 à 00:49 +0200, Pascal T. a écrit :

Sorry but it’s very late now so I won’t explain more before going to
bed :slight_smile:

OK I actually found a place to get the explanation from :slight_smile:

http://practicalruby.blogspot.com/2007/03/super-accesses-inaccessible.html

and register_type creates a module and includes it