summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererspin.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/gtkcellrendererspin.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/gtkcellrendererspin.c')
-rw-r--r--gtk/gtkcellrendererspin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkcellrendererspin.c b/gtk/gtkcellrendererspin.c
index ebd08e275c..2a3961bf20 100644
--- a/gtk/gtkcellrendererspin.c
+++ b/gtk/gtkcellrendererspin.c
@@ -230,7 +230,9 @@ gtk_cell_renderer_spin_focus_out_event (GtkWidget *widget,
const gchar *new_text;
gboolean canceled;
- canceled = GTK_ENTRY (widget)->editing_canceled;
+ g_object_get (widget,
+ "editing-canceled", &canceled,
+ NULL);
g_signal_handlers_disconnect_by_func (widget,
gtk_cell_renderer_spin_focus_out_event,