summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderertext.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2004-01-16 19:18:28 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-01-16 19:18:28 +0000
commitfb526d239af04183f5751f209c269d13b244de80 (patch)
treea3ed517b157811ca3fcc5e3f649585134f28380e /gtk/gtkcellrenderertext.c
parentc6860c111b45dbe59c67a1d6c1ef646397a57812 (diff)
downloadgdk-pixbuf-fb526d239af04183f5751f209c269d13b244de80.tar.gz
Fix #130969.
2004-01-16 Federico Mena Quintero <federico@ximian.com> Fix #130969. * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an editing_canceled signal. * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the "editing-canceled" signal. (gtk_cell_renderer_editing_canceled): New function. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done): Call gtk_cell_renderer_editing_canceled().
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r--gtk/gtkcellrenderertext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index fe79f6cfa..f03f6e45c 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -1439,7 +1439,10 @@ gtk_cell_renderer_text_editing_done (GtkCellEditable *entry,
}
if (GTK_ENTRY (entry)->editing_canceled)
- return;
+ {
+ gtk_cell_renderer_editing_canceled (GTK_CELL_RENDERER (data));
+ return;
+ }
path = g_object_get_data (G_OBJECT (entry), GTK_CELL_RENDERER_TEXT_PATH);
new_text = gtk_entry_get_text (GTK_ENTRY (entry));