summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-12-09 17:55:58 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-12-09 17:55:58 +0000
commit788bec83843059493bd6f3adac26cf8e2f323559 (patch)
tree2ead700e3571f4f545e7352baef01436238cbd43 /gtk/gtkcellrenderer.h
parent08b5b675e157305696094e334d7e4c5c3fb1f5a4 (diff)
downloadgtk+-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/gtkcellrenderer.h')
-rw-r--r--gtk/gtkcellrenderer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h
index 01e882419a..375106acf4 100644
--- a/gtk/gtkcellrenderer.h
+++ b/gtk/gtkcellrenderer.h
@@ -72,6 +72,7 @@ struct _GtkCellRenderer
guint is_expanded : 1;
guint cell_background_set : 1;
guint sensitive : 1;
+ guint editing : 1;
};
struct _GtkCellRendererClass
@@ -157,7 +158,11 @@ void gtk_cell_renderer_get_fixed_size (GtkCellRenderer *cell,
gint *height);
/* For use by cell renderer implementations only */
+#ifndef GTK_DISABLE_DEPRECATED
void gtk_cell_renderer_editing_canceled (GtkCellRenderer *cell);
+#endif
+void gtk_cell_renderer_stop_editing (GtkCellRenderer *cell,
+ gboolean canceled);
G_END_DECLS