[gnome-boxes/make-shortcuts-window-transient] 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] app: Make Shortcuts Window transient to the main window
- Date: Tue, 9 Oct 2018 15:49:16 +0000 (UTC)
commit 0010834e53b9b8dc1e5d2f2da26ed26a5da6eb56
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]