[gnome-boxes/wip/wizard-n-props-in-dialog2: 1/2] libvirt-machine-props: Make dialogs modal
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/wizard-n-props-in-dialog2: 1/2] libvirt-machine-props: Make dialogs modal
- Date: Wed, 27 Aug 2014 16:24:27 +0000 (UTC)
commit 6a4fba80db7b8f2ab3665624e657ee60740031f5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Aug 27 17:02:59 2014 +0100
libvirt-machine-props: Make dialogs modal
Make dialogs launched from properties, modal. Almost all dialogs should
be modal anyway and in this case, it's certainly true.
At the same time make "Save" dialog transient over "Troubleshooting log"
dialog as its launched by that.
src/libvirt-machine-properties.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 8efba22..b15c7d0 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -151,6 +151,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
_("Copy to clipboard"), 101,
_("_Close"), ResponseType.OK);
dialog.set_default_size (640, 480);
+ dialog.modal = true;
var text = new Gtk.TextView ();
text.editable = false;
var scroll = new Gtk.ScrolledWindow (null, null);
@@ -163,11 +164,12 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
dialog.response.connect ( (response_id) => {
if (response_id == 100) {
- var chooser = new Gtk.FileChooserDialog (_("Save log"), machine.window,
+ var chooser = new Gtk.FileChooserDialog (_("Save log"), dialog,
Gtk.FileChooserAction.SAVE,
_("_Save"), ResponseType.OK);
chooser.local_only = false;
chooser.do_overwrite_confirmation = true;
+ chooser.modal = true;
chooser.response.connect ((response_id) => {
if (response_id == ResponseType.OK) {
var file = chooser.get_file ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]