[gtk-doc/gtk4-fixes] scangobj: Child properties are gone
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/gtk4-fixes] scangobj: Child properties are gone
- Date: Sat, 22 Jun 2019 02:24:21 +0000 (UTC)
commit 5a9a09077c708dc7af8fc2cf88d8265c7e8f20b1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 22 02:23:14 2019 +0000
scangobj: Child properties are gone
If we are handling GTK >= 3.96.0, child properties
don't exist anymore, so don't try to introspect them.
gtkdoc/scangobj.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtkdoc/scangobj.py b/gtkdoc/scangobj.py
index 4535458..5c604fb 100644
--- a/gtkdoc/scangobj.py
+++ b/gtkdoc/scangobj.py
@@ -1151,12 +1151,14 @@ output_object_args (FILE *fp, GType object_type)
g_free (properties);
#ifdef GTK_IS_CONTAINER_CLASS
+#if !GTK_CHECK_VERSION(3,96,0)
if (!child_prop && GTK_IS_CONTAINER_CLASS (class)) {
properties = gtk_container_class_list_child_properties (class, &n_properties);
child_prop = TRUE;
continue;
}
#endif
+#endif
#ifdef GTK_IS_CELL_AREA_CLASS
if (!child_prop && GTK_IS_CELL_AREA_CLASS (class)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]