menu and printer_select: support more than 8 items

This commit is contained in:
alfrix
2022-03-25 12:02:19 -03:00
parent 07bbbe9d51
commit bc366b708d
2 changed files with 18 additions and 6 deletions

View File

@@ -19,10 +19,16 @@ class MenuPanel(ScreenPanel):
self.items = items
self.create_menu_items()
self.grid = Gtk.Grid()
self.grid.set_row_homogeneous(True)
self.grid.set_column_homogeneous(True)
self.content.add(self.grid)
self.grid = self._gtk.HomogeneousGrid()
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_hexpand(True)
scroll.set_vexpand(True)
scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scroll.add(self.grid)
self.content.add(scroll)
def activate(self):
if not self.j2_data: