[vte] Add compat impl for gtk_accessible_get_widget()



commit 3e8c59f78a8e7557ffccd97d7cd5dea0f7b0aceb
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Jul 22 12:32:40 2010 -0400

    Add compat impl for gtk_accessible_get_widget()

 src/vte-gtk-compat.h |    4 ++++
 src/vteaccess.c      |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/vte-gtk-compat.h b/src/vte-gtk-compat.h
index c7c930b..7598f9b 100644
--- a/src/vte-gtk-compat.h
+++ b/src/vte-gtk-compat.h
@@ -50,6 +50,10 @@ G_BEGIN_DECLS
 
 #endif
 
+#if !GTK_CHECK_VERSION (2, 22, 0)
+#define gtk_accessible_get_widget(accessible)           ((accessible)->widget)
+#endif
+
 #if !GTK_CHECK_VERSION (2, 20, 0)
 #define gtk_widget_get_mapped(widget)                   (GTK_WIDGET_MAPPED ((widget)))
 #define gtk_widget_get_realized(widget)                 (GTK_WIDGET_REALIZED ((widget)))
diff --git a/src/vteaccess.c b/src/vteaccess.c
index 91a98fe..d7db963 100644
--- a/src/vteaccess.c
+++ b/src/vteaccess.c
@@ -33,6 +33,7 @@
 #include "vte.h"
 #include "vteaccess.h"
 #include "vteint.h"
+#include "vte-gtk-compat.h"
 
 #ifdef HAVE_LOCALE_H
 #include <locale.h>



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