Re: set_cursor in gtk_list_store?



On Wed, Dec 18, 2002 at 11:11:36AM +0100, Miroslav Binas wrote:

how can i set cursor to the specified row in the gtk_list_store? may i
use gtk_tree_view_set_cursor in some way? how?

You also need to pass in a GtkTreeViewColumn, e.g., if you wanted to set
the cursor on the 2nd column of the 4th row so that the user can start
editing that cell:

path = gtk_tree_path_new_from_indices(3, -1)
viewcolumn = gtk_tree_view_get_column(treeview, 1)
gtk_tree_view_set_cursor(treeview, path, viewcolumn, TRUE)

(assuming you've made that column editable).

Dave Cook



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