Gtk2::ComboBoxEntry error on change
- From: Fabio A Mazzarino <fabio mazzarino gmail com>
- To: gtk-perl-list gnome org
- Subject: Gtk2::ComboBoxEntry error on change
- Date: Thu, 8 Sep 2005 11:06:44 -0300
Hi folks:
When I select an item at a filled Gtk2::ComboBoxEntry I receive the
following error:
Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed
at guiSaturn.pm line 144.
guiSaturn.pm line 144 is the Gtk2->main; method call.
I'm using Gtk2::GladeXML to build the window, and the following code
to fill the Gtk2::ComboBoxEntry:
my $store = Gtk2::ListStore->new('Glib::String');
foreach my $schedRef ( @{$response->value}) {
$store->set($store->append, 0, $schedRef->{'JOB_NAME'});
}
# renderer
my $render = Gtk2::CellRendererText->new;
$cmbJobName->pack_start($render, 0);
$cmbJobName->set_attributes($render, text => 0);
# assign list to combo
$cmbJobName->set_model($store);
It fills correctly, but when I click an item at runtime it returns
the error listed below.
Does anybody knows what is going on?
Fabio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]