Name collision?

Hi,

I’m on porting the ComboBox sample from C to ruby.

There is Gtk::ComboBoxText in use. This class has an remove-methode
itself and a remove-methode inherited from Gtk::Container. The one from
Gtk::Container, which will remove the child and not the text from the
Combo can’t be used?!

Cheers, detlef

Hi,

In [email protected]
“[ruby-gnome2-devel-en] name collision?” on Tue, 16 Apr 2013 18:07:11
+0200,
Detlef R. [email protected] wrote:

There is Gtk::ComboBoxText in use. This class has an remove-methode
itself and a remove-methode inherited from Gtk::Container. The one from
Gtk::Container, which will remove the child and not the text from the
Combo can’t be used?!

It seems that the sample is too tricky for Ruby-GNOME2…
I think that we don’t need to port the sample.

If you want to port the sample, the following code will work:

text.signal_emit(“remove”, text.child)
text.signal_emit(“add”, entry)

Thanks,

kou