cancel the current editing, if it exists. (Fixes #108956, reported by

Thu May 29 17:12:19 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
	the current editing, if it exists. (Fixes #108956, reported by
	Michael Natterer).
This commit is contained in:
Kristian Rietveld
2003-05-29 15:14:19 +00:00
committed by Kristian Rietveld
parent 6a60f3a6b8
commit 4dfc635844
6 changed files with 35 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
the current editing, if it exists. (Fixes #108956, reported by
Michael Natterer).
Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (check_selection_helper): new function,

View File

@@ -1,3 +1,9 @@
Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
the current editing, if it exists. (Fixes #108956, reported by
Michael Natterer).
Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (check_selection_helper): new function,

View File

@@ -1,3 +1,9 @@
Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
the current editing, if it exists. (Fixes #108956, reported by
Michael Natterer).
Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (check_selection_helper): new function,

View File

@@ -1,3 +1,9 @@
Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
the current editing, if it exists. (Fixes #108956, reported by
Michael Natterer).
Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (check_selection_helper): new function,

View File

@@ -1,3 +1,9 @@
Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
the current editing, if it exists. (Fixes #108956, reported by
Michael Natterer).
Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (check_selection_helper): new function,

View File

@@ -9770,6 +9770,11 @@ gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_CELL_RENDERER (focus_cell));
}
/* cancel the current editing, if it exists */
if (tree_view->priv->edited_column &&
tree_view->priv->edited_column->editable_widget)
gtk_tree_view_stop_editing (tree_view, TRUE);
gtk_tree_view_real_set_cursor (tree_view, path, TRUE, TRUE);
if (focus_column && focus_column->visible)