Re: TreeView cell editing



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);
           }




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