logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Gtk::Comb: msg#00021

Subject: Gtk::Comb
I am trying to update a Gtk::Combo widget with text I insert into a
Gtk::Entry Widget. I can get the text from the Entry widget and print it
to screen but so far I have been unsuccessful adding it to the list for
the Gtk::Combo.

Here's how I did...


$button_add->signal_connect( "clicked", \&add_entry, $entry, $combo );

sub add_entry
{
    my ( $widget, $entry, $combo ) = @_;
    my $entry_text = $entry->get_text();
    print "Entry contents: $entry_text\n";
    $combo->list->append_items($entry_text);
}

I get the following error...

item cannot be undef at ... etc etc


Thanks


-- 
Andy Ford 


<Prev in Thread] Current Thread [Next in Thread>