# Name collision?

**URL:** <https://www.ruby-forum.com/t/name-collision/228287>\
**Category:** Ruby-Gnome 2\
**Created:** [April 16, 2013, 6:08pm UTC](https://www.ruby-forum.com/t/name-collision/228287 "2013-04-16T18:08:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 16, 2013, 6:08pm UTC](https://www.ruby-forum.com/t/name-collision/228287/1 "2013-04-16T18:08:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 17, 2013, 2:37pm UTC](https://www.ruby-forum.com/t/name-collision/228287/2 "2013-04-17T14:37:44Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] name collision?” on Tue, 16 Apr 2013 18:07:11  
+0200,  
Detlef R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
