get the current selection in list
- From: "rion10 (sent by Nabble.com)" <lists nabble com>
- To: gtk-list gnome org
- Subject: get the current selection in list
- Date: Mon, 28 Nov 2005 22:11:45 -0800 (PST)
When the focus is in the list widget, I press UP or DOWN key to change the focus of the list item(without presssing OK key to hightlight the item), how can get the current focused item after press UP or DOWN key.
I add the callback funciton like the following:
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
GTK_SIGNAL_FUNC(OnFocusInEvent),
gpointer(this)); //there is no effect when the focus is changed
gtk_signal_connect(GTK_OBJECT(list), "selection-changed",
GTK_SIGNAL_FUNC(OnListSelectionChanged),
gpointer(this)); //it is only take effect after press OK
How can get it? thanks
Sent from the
Gtk+ - General forum at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]