Can't Override Widget class in Gtk3


I’m working on an upgrade to visualruby that uses gtk3!

However, I’ve run into a few problems.

In my first version of visualruby, I added to the Gtk::Widget class:

Module Gtk

class Widget


Howver, with gtk 3 I get this error/warning, and the class is not

warning: already initialized constant Gtk::Widget
warning: previous definition of Widget was here

How do I override the Widget class?

Thanks for all your great work!


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs