From bb47af6d9b930980089ccdd543e06d16a322b62c Mon Sep 17 00:00:00 2001 From: Jose Augusto Date: Mon, 28 Dec 2020 15:23:34 -0300 Subject: [PATCH] feat: Migrating from hbox to GtkBox --- terminatorlib/terminal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 42de222a..8ef3e500 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -294,8 +294,8 @@ class Terminal(Gtk.VBox): def create_terminalbox(self): """Create a GtkHBox containing the terminal and a scrollbar""" - terminalbox = Gtk.HBox() - self.scrollbar = Gtk.VScrollbar(self.vte.get_vadjustment()) + terminalbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 0) + self.scrollbar = Gtk.Scrollbar.new(Gtk.Orientation.VERTICAL, adjustment=self.vte.get_vadjustment()) self.scrollbar.set_no_show_all(True) terminalbox.pack_start(self.vte, True, True, 0)