When you want to override a default signal handler in your new class
calling type_register is the best and only way in the current ruby-gtk2.
class MyLabel < Gtk::Label
Ruby-gtk2 finds the newly defined signal handler by wathcing method
by using ‘method_added’. However, it does not work if a signal handler
in a module and the class included it.
class NiceLabel < Gtk::Label
I attached a working sample to this message. Run it and resize the
Is there any nice trick to avoid this problem? Or should we add a new
to Ruby-gtk2? (just like the old signal_override()?)