Re: TreeView cell editing

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

 



James Pelletier wrote:

More importantly, is there a way to force a cell that is currently being edited to end editing?

You can do it by moving cursor to another cell without editing it (and, maybe, moving the cursor back to the origin figured out with gtk_tree_view_get_cursor). It works for me.


if ( gtk_tree_view_get_model (GTK_TREE_VIEW (tree)) != NULL)
{
GtkTreePath *path = gtk_tree_path_new_first ();
gtk_tree_view_set_cursor (GTK_TREE_VIEW (tree), path, NULL, FALSE);
gtk_tree_path_free (path);
}


_______________________________________________

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