[PATCH] Remove usage of deprecated API



    * src/uicommon/nmv-terminal.cc (Terminal::Priv::init_body):
    Replace the deprecated API (vte_terminal_get_adjustment) by its
    recommanded replacement (gtk_scrollable_get_vadjustment).
---
 src/uicommon/nmv-terminal.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/uicommon/nmv-terminal.cc b/src/uicommon/nmv-terminal.cc
index 81cc859..717c094 100644
--- a/src/uicommon/nmv-terminal.cc
+++ b/src/uicommon/nmv-terminal.cc
@@ -145,7 +145,8 @@ struct Terminal::Priv {
         widget->set_manage ();
         widget->reference ();
 
-        adjustment = Glib::wrap (vte_terminal_get_adjustment (vte));
+        adjustment =
+            Glib::wrap (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (vte)));
         THROW_IF_FAIL (adjustment);
         adjustment->reference ();
 
-- 
1.8.4.rc3



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