From: Vojtech Trefny <vtrefny(a)redhat.com>
Set python-meh window to be modal and above other windows and hide
it when libreport window is displayed.
Signed-off-by: Vojtech Trefny <vtrefny(a)redhat.com>
---
meh/ui/gui.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meh/ui/gui.py b/meh/ui/gui.py
index 2275f9b..d9d826b 100644
--- a/meh/ui/gui.py
+++ b/meh/ui/gui.py
@@ -113,11 +113,16 @@ def destroy(self, *args, **kwargs):
def run(self, *args, **kwargs):
self._main_window.show_all()
+ # keep our window above dialogs
+ self._main_window.set_modal(True)
+ self._main_window.set_keep_above(True)
Gtk.main()
self.destroy()
return self._response
def on_report_clicked(self, button):
+ # hide our window to not interfere with libreport window
+ self._main_window.hide()
self._response = MAIN_RESPONSE_SAVE
Gtk.main_quit()
--
To view this commit on github, visit
https://github.com/rhinstaller/python-meh/commit/68d025093a7c3a0e54fd93bf...