Re: Gtk2::ComboBoxEntry



* Jens Luedicke <jens luedicke gmail com> [2005-07-13 17:40]:
how can I set some text to the entry widget so that the
associated "changed" signal callback isn't called? Same for
typing in the entry. This makes the box really useless. changed
should only be be called if I select something from the list
below.

Whereâs the problem? Just call Gtk2::ComboBoxEntry->get_active()
and check if itâs -1. If it is, that means the user typed
something. If itâs a non-negative integer that means the user
selected an entry from the dropdown.

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



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