[gnome-sound-recorder/bilelmoussaoui/fixes: 1/12] row: make the export dialog modal




commit 552cfaf30a1835168d756ea78d558c9362aea1d9
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Sep 9 00:28:35 2020 +0200

    row: make the export dialog modal

 src/row.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/row.js b/src/row.js
index e35b6a9..8ffbd55 100644
--- a/src/row.js
+++ b/src/row.js
@@ -64,7 +64,8 @@ var Row = GObject.registerClass({
         let exportAction = new Gio.SimpleAction({ name: 'export' });
 
         exportAction.connect('activate', () => {
-            const dialog = Gtk.FileChooserNative.new(_('Export Recording'), null, 
Gtk.FileChooserAction.SAVE, _('_Export'), _('_Cancel'));
+            const window = Gio.Application.get_default().get_active_window();
+            const dialog = Gtk.FileChooserNative.new(_('Export Recording'), window, 
Gtk.FileChooserAction.SAVE, _('_Export'), _('_Cancel'));
             dialog.set_current_name(`${this._recording.name}.${this._recording.extension}`);
             dialog.connect('response', (_dialog, _response) => {
                 if (_response === Gtk.ResponseType.ACCEPT) {


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