summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderercombo.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2009-12-04 02:15:00 +0100
committerJavier Jardón <jjardon@gnome.org>2009-12-04 02:50:57 +0100
commit325bd9299aaf05f18138c7e5f490a9bf9e1ce00a (patch)
tree7c654f496c72f673ccb1758d716d48a96c7df3f3 /gtk/gtkcellrenderercombo.c
parent46f5ee1d0c0f4601853ed57e99b1b513f1baa445 (diff)
downloadgtk+-325bd9299aaf05f18138c7e5f490a9bf9e1ce00a.tar.gz
Use GtkCellEditable::editing-canceled
GtkCellEditable::editing-canceled property was added in 2.19 cycle, so we should make the code that currently uses entry->editing_canceled directly go through the property Fixes https://bugzilla.gnome.org/show_bug.cgi?id=599213
Diffstat (limited to 'gtk/gtkcellrenderercombo.c')
-rw-r--r--gtk/gtkcellrenderercombo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkcellrenderercombo.c b/gtk/gtkcellrenderercombo.c
index 1ad0b228bf..ba5fabb63d 100644
--- a/gtk/gtkcellrenderercombo.c
+++ b/gtk/gtkcellrenderercombo.c
@@ -331,8 +331,10 @@ gtk_cell_renderer_combo_editing_done (GtkCellEditable *combo,
g_signal_handler_disconnect (combo, cell->focus_out_id);
cell->focus_out_id = 0;
}
-
- canceled = _gtk_combo_box_editing_canceled (GTK_COMBO_BOX (combo));
+
+ g_object_get (combo,
+ "editing-canceled", &canceled,
+ NULL);
gtk_cell_renderer_stop_editing (GTK_CELL_RENDERER (data), canceled);
if (canceled)
{