diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-09 17:55:58 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-09 17:55:58 +0000 |
commit | 788bec83843059493bd6f3adac26cf8e2f323559 (patch) | |
tree | 2ead700e3571f4f545e7352baef01436238cbd43 /gtk/gtktreeview.c | |
parent | 08b5b675e157305696094e334d7e4c5c3fb1f5a4 (diff) | |
download | gtk+-788bec83843059493bd6f3adac26cf8e2f323559.tar.gz |
Fix #145463, reported by Michael Natterer.
2004-12-09 Matthias Clasen <mclasen@redhat.com>
Fix #145463, reported by Michael Natterer.
* gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add an
editing flag to keep track of when editing is done.
* gtk/gtkcellrenderer.h:
* gtk/gtkcellrenderer.c (gtk_cell_renderer_stop_editing): New
function to replace gtk_cell_renderer_editing_canceled().
Deprecate gtk_cell_renderer_editing_canceled().
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done):
* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_editing_done):
* gtk/gtktreeview.c (gtk_tree_view_stop_editing):
Use gtk_cell_renderer_stop_editing().
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r-- | gtk/gtktreeview.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index c6d727e4b4..df546df2ec 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -12870,6 +12870,7 @@ gtk_tree_view_stop_editing (GtkTreeView *tree_view, gboolean cancel_editing) { GtkTreeViewColumn *column; + GtkCellRenderer *cell; if (tree_view->priv->edited_column == NULL) return; @@ -12887,7 +12888,10 @@ gtk_tree_view_stop_editing (GtkTreeView *tree_view, column = tree_view->priv->edited_column; tree_view->priv->edited_column = NULL; - if (! cancel_editing) + cell = _gtk_tree_view_column_get_edited_cell (column); + gtk_cell_renderer_stop_editing (cell, cancel_editing); + + if (!cancel_editing) gtk_cell_editable_editing_done (column->editable_widget); tree_view->priv->edited_column = column; |