gtk: resizability

doesn't rescale the fonts or images
This commit is contained in:
alfrix
2022-12-07 11:44:21 -03:00
parent 413e822fa5
commit 7120c424d4
16 changed files with 96 additions and 110 deletions

View File

@@ -17,7 +17,7 @@ class SplashScreenPanel(ScreenPanel):
def __init__(self, screen, title):
super().__init__(screen, title)
image = self._gtk.Image("klipper", self._gtk.get_content_width() * .2, self._gtk.get_content_height() * .5)
image = self._gtk.Image("klipper", self._gtk.content_width * .2, self._gtk.content_height * .5)
self.labels['text'] = Gtk.Label(_("Initializing printer..."))
self.labels['text'].set_line_wrap(True)
self.labels['text'].set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
@@ -42,7 +42,7 @@ class SplashScreenPanel(ScreenPanel):
self.labels['actions'].set_vexpand(False)
self.labels['actions'].set_halign(Gtk.Align.CENTER)
self.labels['actions'].set_homogeneous(True)
self.labels['actions'].set_size_request(self._gtk.get_content_width(), -1)
self.labels['actions'].set_size_request(self._gtk.content_width, -1)
scroll = self._gtk.ScrolledWindow()
scroll.set_hexpand(True)