Re: Combo box event question
- From: "Tara M" <learfox furry ao net>
- To: "LIST: GTKAppDevel" <gtk-app-devel-list gnome org>
- Subject: Re: Combo box event question
- Date: 03 Aug 2001 13:39:05 PDT
On Fri, 3 Aug 2001 15:56:26 +0300, Mihai Bazon said:
GtkCombo structure contains a member named "list" of type GtkWidget*.
This member is a GtkList. Get it this way:
GtkWidget *the_list = GTK_COMBO(the_combo)->list;
connect to it's select signal:
gtk_signal_connect(GTK_OBJECT(the_list), "selection_changed",
GTK_SIGNAL_FUNC(your_handler), NULL);
hmm.. I don't know for sure if that's the signal's name.. however, about
GtkList you can find detail info in tutorial.
Cheers,
//mishoo
Right but note that this won't generate a signal if the user
types something into the combo box's entry widget.
I still recommend using the "insert_text" signal for the
entry widget as its more through. But this approach may be
more efficient if you only accept selections from the list
and ignore the entry.
--
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
.__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]