[vte] One more GSEAL fix



commit b48f5ea815337f48a0dafefb68b5858af66ecd6a
Author: Christian Persch <chpe gnome org>
Date:   Mon Aug 16 21:23:39 2010 +0200

    One more GSEAL fix

 src/reflect.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/reflect.c b/src/reflect.c
index 56528e9..2c767a7 100644
--- a/src/reflect.c
+++ b/src/reflect.c
@@ -48,7 +48,11 @@ terminal_shell_text_view(GtkWidget *widget)
 static GtkAdjustment *
 terminal_adjustment_text_view(GtkWidget *terminal)
 {
-	return (GTK_TEXT_VIEW(terminal))->vadjustment;
+#if GTK_CHECK_VERSION (2, 21, 6)
+	return gtk_text_view_get_vadjustment(GTK_TEXT_VIEW(terminal));
+#else
+	return GTK_TEXT_VIEW(terminal))->vadjustment;
+#endif
 }
 #endif
 #ifdef USE_VTE



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