Re: Problem with Gtk2::Combobox->new_with_model
- From: "muppet" <scott asofyet org>
- To: gtk-perl-list gnome org
- Subject: Re: Problem with Gtk2::Combobox->new_with_model
- Date: Fri, 3 Sep 2010 20:39:22 -0400
Mike Martin wrote:
Hi - getting confused
I have a liststore
my $dvd_modelx=Gtk2::ListStore->new('Glib::String');
foreach my $list (keys %cds){
my $iter=$dvd_modelx->append();
$dvd_modelx->set($iter, 0,$list )
}
my $wid=Gtk2::ComboBox->new_with_model($dvd_modelx);# fails to add to combobox
my $wid=Gtk2::ComboBoxEntry->new_with_model($dvd_modelx);# succeeds in
add to combobox
What am i missing here?
Did you pack a cell renderer into your Gtk2::ComboBox? The ComboBoxEntry
already has one...
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]