I have a GTK_LIST packed into a scrollbar window. I want to navigate between the records in the list with the Up/Down arrow keys and always have the selected record "visible".

When I browse through the list, the scrollbar doesn't move so I cannot see the row that I'm selecting... I must move the scrollbar with the mouse but I want to make the scrollbar "follow" the selection automatically.

I want to port this code, that resolve problem, to C. Any help would be nice...

#1 GtkList is depreciated. You may get it working but your program will be old before its even new. Maintaining it will be much harder. Use e.g. GtkTreeView instead. I have a feeling scrolling may well happen automatically and if it doesn't you can use gtk_tree_view_scroll_to_cell.

Who is online

Users browsing this forum: Google [Bot] and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum