File nemo-terminal_vte-2.91.patch of Package nemo-extensions

--- nemo-terminal.orig/src/nemo_terminal.py
+++ nemo-terminal/src/nemo_terminal.py
@@ -50,7 +50,6 @@ gettext.textdomain('nemo-terminal')
 _ = gettext.gettext
 
 import gi
-gi.require_version('Vte', '2.90')
 from gi.repository import GObject, Nemo, Gtk, Gdk, Vte, GLib, Gio
 
 # DEFAULT_CONF = {
@@ -86,7 +85,10 @@ class NemoTerminal(object):
         self.shell_pid = -1
         self.term = Vte.Terminal()
 
-        self.shell_pid = self.term.fork_command_full(Vte.PtyFlags.DEFAULT,
+        term_spawn_cmd = "fork_command_full"
+        if (hasattr(self.term, "spawn_sync")):
+                term_spawn_cmd = "spawn_sync"
+        self.shell_pid = getattr(self.term, term_spawn_cmd)(Vte.PtyFlags.DEFAULT,
                 self._path, [terminal_or_default()], None,
                 GLib.SpawnFlags.SEARCH_PATH, None, None)[1]
         # Make vte.sh active
@@ -124,7 +126,7 @@ class NemoTerminal(object):
         self.term.connect("drag_data_received", self._on_drag_data_received)
         
         # Container
-        self.vscrollbar = Gtk.VScrollbar.new(self.term.adjustment)
+        self.vscrollbar = Gtk.VScrollbar.new(self.term.get_vadjustment())
         
         self.hbox = Gtk.HBox()
         self.hbox.pack_start(self.term, True, True, 0)
openSUSE Build Service is sponsored by