feat: Migrating from hbox to GtkBox

This commit is contained in:
Jose Augusto 2020-12-28 15:23:34 -03:00
parent 24757a6922
commit bb47af6d9b
1 changed files with 2 additions and 2 deletions

View File

@ -294,8 +294,8 @@ class Terminal(Gtk.VBox):
def create_terminalbox(self): def create_terminalbox(self):
"""Create a GtkHBox containing the terminal and a scrollbar""" """Create a GtkHBox containing the terminal and a scrollbar"""
terminalbox = Gtk.HBox() terminalbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 0)
self.scrollbar = Gtk.VScrollbar(self.vte.get_vadjustment()) self.scrollbar = Gtk.Scrollbar.new(Gtk.Orientation.VERTICAL, adjustment=self.vte.get_vadjustment())
self.scrollbar.set_no_show_all(True) self.scrollbar.set_no_show_all(True)
terminalbox.pack_start(self.vte, True, True, 0) terminalbox.pack_start(self.vte, True, True, 0)