Re: set_cursor in gtk_list_store?
- From: "David M. Cook" <dave davidcook org>
- To: gtk-app-devel-list gnome org
- Subject: Re: set_cursor in gtk_list_store?
- Date: Wed, 18 Dec 2002 07:05:32 -0800
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]