refactor: simplify the windowed flag
do not declare multiple variables in the same line
This commit is contained in:
1 parent
6ec9c3a934
commit
e01acf8edc
3 files changed
+6
-6
No files matched your search
@@ -210,7 +210,7 @@ class KlippyGtk:
|
||||
dialog = Gtk.Dialog(title=title, modal=True, transient_for=self.screen,
|
||||
default_width=self.width, default_height=self.height)
|
||||
dialog.set_size_request(self.width, self.height)
|
||||
if not self.screen.windowed:
|
||||
if not self.screen.get_resizable():
|
||||
dialog.fullscreen()
|
||||
|
||||
if buttons:
|
||||
|
||||
@@ -113,7 +113,7 @@ class Prompt:
|
||||
scroll.add(self.scroll_box)
|
||||
|
||||
content = Gtk.Grid()
|
||||
if not self.screen.windowed:
|
||||
if not self.screen.get_resizable():
|
||||
content.attach(title, 0, 0, 1, 1)
|
||||
content.attach(close, 1, 0, 1, 1)
|
||||
content.attach(scroll, 0, 1, 2, 1)
|
||||
|
||||
Reference in new issue
Block a user