[libwnck] bgo#612490 - Use gtk_accessible_set_widget() for the GSEAL()ed field



commit 6e98992283f94846470b2f912ad678c196c52f30
Author: Federico Mena Quintero <federico novell com>
Date:   Tue Jun 22 12:21:48 2010 -0500

    bgo#612490 - Use gtk_accessible_set_widget() for the GSEAL()ed field
    
    This requires GTK+ 2.22.0.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 libwnck/pager-accessible.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libwnck/pager-accessible.c b/libwnck/pager-accessible.c
index a045e7d..d4392de 100644
--- a/libwnck/pager-accessible.c
+++ b/libwnck/pager-accessible.c
@@ -293,7 +293,11 @@ wnck_pager_accessible_new (GtkWidget *widget)
   aobj_pager = ATK_OBJECT (object);
 
   gtk_accessible = GTK_ACCESSIBLE (aobj_pager);
+#if GTK_CHECK_VERSION(2,90,4)
+  gtk_accessible_set_widget (gtk_accessible, widget);
+#else
   gtk_accessible->widget = widget;
+#endif
 
   atk_object_initialize (aobj_pager, widget);
   aobj_pager->role = ATK_ROLE_PANEL;



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