Avoid trying to override non-existent property with GTK+ < 2.20
This commit is contained in:
@@ -1252,10 +1252,13 @@ static void gtk_wx_cell_editor_bin_class_init(void* klass, void*)
|
|||||||
oclass->set_property = gtk_wx_cell_editor_bin_set_property;
|
oclass->set_property = gtk_wx_cell_editor_bin_set_property;
|
||||||
oclass->get_property = gtk_wx_cell_editor_bin_get_property;
|
oclass->get_property = gtk_wx_cell_editor_bin_get_property;
|
||||||
|
|
||||||
|
if (wx_is_at_least_gtk2(20))
|
||||||
|
{
|
||||||
g_object_class_override_property(oclass,
|
g_object_class_override_property(oclass,
|
||||||
CELL_EDITOR_BIN_PROP_EDITING_CANCELED,
|
CELL_EDITOR_BIN_PROP_EDITING_CANCELED,
|
||||||
"editing-canceled");
|
"editing-canceled");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// We need to provide these virtual methods as we must support the
|
// We need to provide these virtual methods as we must support the
|
||||||
// editing-canceled property, but they don't seem to be actually ever called,
|
// editing-canceled property, but they don't seem to be actually ever called,
|
||||||
|
Reference in New Issue
Block a user