Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » get the current selection in list [RSS Feed]

#1 Nov. 29, 2005 06:16:46

rion10 (.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

get the current selection in list

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 changedgtk_signal_connect(GTK_OBJECT(list), "selection-changed",                     GTK_SIGNAL_FUNC(OnListSelectionChanged),                     gpointer(this)); //it is only take effect after press OKHow can get it? thanksSent from theGtk+ - Generalforum at Nabble.com._______________________________________________
gtk-list mailing list


  • Root
  • » GTK+
  • » get the current selection in list [RSS Feed]

Board footer

Moderator control

Enjoy the 24th of April

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support