[gtk-doc] scangobj: Protect style property inspection
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scangobj: Protect style property inspection
- Date: Thu, 16 Feb 2017 16:40:59 +0000 (UTC)
commit 5bd7638ba5c521d82f148a4f4a6c030951f5eeb7
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Feb 13 21:23:04 2017 +0000
scangobj: Protect style property inspection
The API to list style properties on GtkWidget was removed in GTK+ 3.89.
We need to protect the call to gtk_widget_class_list_style_properties()
with a version check.
https://bugzilla.gnome.org/show_bug.cgi?id=778144
gtkdoc-scangobj.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
index 0fb3c2e..a2d91b0 100644
--- a/gtkdoc-scangobj.in
+++ b/gtkdoc-scangobj.in
@@ -1270,7 +1270,7 @@ output_object_args (FILE *fp, GType object_type)
#endif
#ifdef GTK_IS_WIDGET_CLASS
-#if GTK_CHECK_VERSION(2,1,0)
+#if GTK_CHECK_VERSION(2,1,0) && !GTK_CHECK_VERSION(3,89,2)
if (!style_prop && GTK_IS_WIDGET_CLASS (class)) {
properties = gtk_widget_class_list_style_properties (GTK_WIDGET_CLASS (class), &n_properties);
style_prop = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]