get the current selection in list

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

 



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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux