[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Making Glade created ComboBox behave like Gtk2::ComboBox->new_text?
- From: Martin Junius <mj+gnome ml m-j-s net>
- To: muppet <scott asofyet org>
- Cc: gtk-perl-list gnome org
- Subject: Re: Making Glade created ComboBox behave like Gtk2::ComboBox->new_text?
- Date: Tue, 23 Aug 2005 20:18:01 +0200
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?
Martin
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]