[gnome-boxes] libvirt-machine-props: Troubleshoot dialog now modal



commit cedb28a5bbf69411564193fd1b9553bd7cb0305b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Aug 28 19:16:16 2014 +0100

    libvirt-machine-props: Troubleshoot dialog now modal
    
    "Troubleshooting log" dialog (and dialogs launched from it) should now be
    modal since otherwise users won't be able to interact with it since
    PropertiesWindow is modal.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733367

 src/libvirt-machine-properties.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 5718da2..475de91 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -154,6 +154,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                                                           _("_Save"), 100,
                                                           _("Copy to clipboard"), 101,
                                                           _("_Close"), ResponseType.OK);
+                dialog.modal = true;
                 dialog.set_default_size (640, 480);
                 var text = new Gtk.TextView ();
                 text.editable = false;
@@ -170,6 +171,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                         var chooser = new Gtk.FileChooserDialog (_("Save log"), machine.window,
                                                                  Gtk.FileChooserAction.SAVE,
                                                                  _("_Save"), ResponseType.OK);
+                        chooser.modal = true;
                         chooser.local_only = false;
                         chooser.do_overwrite_confirmation = true;
                         chooser.response.connect ((response_id) => {
@@ -184,6 +186,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                                                                    Gtk.MessageType.ERROR,
                                                                    Gtk.ButtonsType.CLOSE,
                                                                    _("Error saving: %s").printf (e.message));
+                                    m.modal = true;
                                     m.show_all ();
                                     m.response.connect ( () => { m.destroy (); });
                                     return;


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