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.
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to