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

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.

*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};

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