Re: TreeView cell editing
- From: James Pelletier <jamesp trdlnk com>
- To: "Dmitry M. Shatrov" <zzidre mail ru>
- Cc: gtk-list gnome org
- Subject: Re: TreeView cell editing
- Date: Wed, 07 Jul 2004 09:59:19 -0500
Thanks! I was hoping for a cleaner solution, but I can at least use this
as a work-around for now!
James
Dmitry M. Shatrov wrote:
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]