From: Nikolai W. <no...@bi...> - 2011-09-23 13:32:34
|
2011/9/23 Kouhei Sutou <ko...@co...>: > Nikolai Weibull <no...@bi...> wrote: >> Gtk::Entry#completion= should call G_CHILD_SET so that the completion >> won’t be GC’d. >> >> Is the addition of a G_CHILD_SET(self, rb_intern("completion"), >> completion); the correct way of doing this? > Please use G_CHILD_ADD() and G_CHILD_REMOVE(). But how should I use G_CHILD_REMOVE()? The key for G_CHILD_REMOVE is the child itself, which I don’t have a reference to on the next call to set_completion. |