From 42c208d1df4e26e0bae372f4f64e8a69913042d3 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Thu, 5 Nov 2020 20:19:26 +0100 Subject: [PATCH] Make file chooser and open URI dialogs modal --- clapper_src/filechooser.js | 1 + clapper_src/uridialog.js | 1 + 2 files changed, 2 insertions(+) diff --git a/clapper_src/filechooser.js b/clapper_src/filechooser.js index f4c51597..84b996fc 100644 --- a/clapper_src/filechooser.js +++ b/clapper_src/filechooser.js @@ -7,6 +7,7 @@ class ClapperFileChooser extends Gtk.FileChooserNative { super._init({ transient_for: window, + modal: true, }); let filter = new Gtk.FileFilter({ diff --git a/clapper_src/uridialog.js b/clapper_src/uridialog.js index d7b78bf3..c224bc9e 100644 --- a/clapper_src/uridialog.js +++ b/clapper_src/uridialog.js @@ -9,6 +9,7 @@ class ClapperUriDialog extends Gtk.Dialog transient_for: window, title: 'Open URI', default_width: 460, + modal: true, }); let box = new Gtk.Box({