[gtkhtml] Use gtk_accessible_get_widget() if available.



commit c9173f161b90431dbc44f30753e501d5c6627af9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Apr 17 19:00:21 2010 -0400

    Use gtk_accessible_get_widget() if available.

 a11y/object.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/a11y/object.c b/a11y/object.c
index 0e89188..38dbc7f 100644
--- a/a11y/object.c
+++ b/a11y/object.c
@@ -68,7 +68,11 @@ do_action (AtkAction * action, gint i)
 	GtkWidget *widget;
 	gboolean return_value = TRUE;
 
+#if GTK_CHECK_VERSION(2,21,0)
+	widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (action));
+#else
 	widget = GTK_ACCESSIBLE (action)->widget;
+#endif
 
 	if (widget == NULL) {
 	/*



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]