diff --git a/panels/job_status.py b/panels/job_status.py index 02875af0..5ea6a783 100644 --- a/panels/job_status.py +++ b/panels/job_status.py @@ -826,11 +826,11 @@ class JobStatusPanel(ScreenPanel): def show_file_thumbnail(self): if self._files.has_thumbnail(self.filename): if self._screen.vertical_mode: - width = -1 + width = self._screen.width * 0.9 height = self._screen.height / 4 else: width = self._screen.width / 3 - height = -1 + height = self._gtk.get_content_height() * 0.48 pixbuf = self.get_file_image(self.filename, width, height) if pixbuf is not None: self.labels['thumbnail'].set_from_pixbuf(pixbuf) diff --git a/panels/splash_screen.py b/panels/splash_screen.py index e287c530..846807d4 100644 --- a/panels/splash_screen.py +++ b/panels/splash_screen.py @@ -20,8 +20,7 @@ class SplashScreenPanel(ScreenPanel): def initialize(self, panel_name): - image = self._gtk.Image("klipper", self._screen.width / 5, -1) - + image = self._gtk.Image("klipper", self._screen.width / 5, self._screen.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)