Re: Making Glade created ComboBox behave like Gtk2::ComboBox->new_text?

muppet wrote:

This works mostly by accident, because you set up your model the same way that
new_text() does.

append_text() merely does this (in C rather than perl, but):

   sub append_text {
      my ($combobox, $text) = @_;
      my $model = $combobox->get_model;
      $model->set ($model->append, 0, $text);

OK, understood. It is safe to continue using my setup and append_text()
or is this likely to break in the future?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]