Commit 7b622c1a authored by Michael I Doherty's avatar Michael I Doherty Committed by Michael Catanzaro

Ensure printing dialog is transient for main window

Presenting printing dialog in full-screen mode makes the main window
disappear from view, as it is not transient for the main window
parent e89d3af8
......@@ -684,7 +684,7 @@ class UI:
def print_multiple_games (self, *args):
gp = printing.GamePrinter(self.sudoku_maker)
gp = printing.GamePrinter(self.sudoku_maker, self.w)
class TrackerBox (Gtk.VBox):
......@@ -117,7 +117,7 @@ class GamePrinter:
ui_file = os.path.join(defaults.UI_DIR, 'print_games.ui')
def __init__ (self, sudoku_maker):
def __init__ (self, sudoku_maker, window):
self.sudoku_maker = sudoku_maker
self.settings = Gio.Settings("org.gnome.gnome-sudoku")
self.builder = Gtk.Builder()
......@@ -144,6 +144,7 @@ class GamePrinter:
self.wrap_adjustment(key, widg)
self.dialog = self.builder.get_object('dialog')
self.dialog.connect('response', self.response_cb)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment