[gnome-boxes/make-shortcuts-window-transient: 22/22] app: Make Shortcuts Window transient to the main window
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/make-shortcuts-window-transient: 22/22] app: Make Shortcuts Window transient to the main window
- Date: Mon, 15 Oct 2018 14:46:55 +0000 (UTC)
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]