[gnome-boxes/make-shortcuts-window-transient: 22/22] app: Make Shortcuts Window transient to the main window



commit ea4fa5a1f73004c592966cd1dd7b9a8d70b1d728
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Oct 9 17:49:51 2018 +0200

    app: Make Shortcuts Window transient to the main window
    
    Currently the Keyboard Shortcuts Window was being spawned
    independently from the main Boxes window.
    
    The expected behavior is similar to the About dialog, which
    is transient to the main window.

 src/app.vala | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/app.vala b/src/app.vala
index 9bee5397..6fc90bf8 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -648,4 +648,8 @@ public new void uninhibit () {
 }
 
 [GtkTemplate (ui = "/org/gnome/Boxes/ui/kbd-shortcuts-window.ui")]
-private class Boxes.KbdShortcutsWindow: Gtk.ShortcutsWindow {}
+private class Boxes.KbdShortcutsWindow: Gtk.ShortcutsWindow {
+    construct {
+        set_transient_for (App.app.main_window);
+    }
+}
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]