[simple-scan/wip/cdavis/consistency-updates: 2/13] app-window: Make preferences modal
- From: Bartosz <bkosiorek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/wip/cdavis/consistency-updates: 2/13] app-window: Make preferences modal
- Date: Fri, 12 Feb 2021 13:38:14 +0000 (UTC)
commit 19cc97d958df7bc48def4406fb4506e8feac14cf
Author: Christopher Davis <brainblasted disroot org>
Date: Tue Feb 9 12:28:52 2021 -0800
app-window: Make preferences modal
Matches how we handle preference dialogs across GNOME
src/app-window.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index 3e362871..0a9a4d70 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -1847,6 +1847,8 @@ public class AppWindow : Gtk.ApplicationWindow
preferences_dialog = new PreferencesDialog (settings);
preferences_dialog.delete_event.connect (() => { return true; });
preferences_dialog.response.connect (() => { preferences_dialog.visible = false; });
+ preferences_dialog.transient_for = this;
+ preferences_dialog.modal = true;
Gtk.Window.set_default_icon_name ("org.gnome.SimpleScan");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]