From da186a0713244d542c5b73019dfbe596e21e93bd Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 3 Jan 2018 09:16:06 -0800 Subject: [PATCH] Avoid trying to override non-existent property with GTK+ < 2.20 --- src/gtk/dataview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index e89c058c05..944f97f00a 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -1252,9 +1252,12 @@ static void gtk_wx_cell_editor_bin_class_init(void* klass, void*) oclass->set_property = gtk_wx_cell_editor_bin_set_property; oclass->get_property = gtk_wx_cell_editor_bin_get_property; - g_object_class_override_property(oclass, + if (wx_is_at_least_gtk2(20)) + { + g_object_class_override_property(oclass, CELL_EDITOR_BIN_PROP_EDITING_CANCELED, "editing-canceled"); + } } // We need to provide these virtual methods as we must support the