[gnome-boxes] libvirt-machine-props: Dismiss props window on restart & shutdown



commit 92ee1f36365e0683170ea8af142bf2d975ee69e4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 28 15:30:19 2015 +0100

    libvirt-machine-props: Dismiss props window on restart & shutdown
    
    In most cases, users wouldn't want to keep using the properties window
    after clicking either restart or force shutdown button. So lets dismiss
    the window when user click on these buttons. Also with no other
    indication of any progress or activity, this would serve as some feedback
    to user that Boxes *is* doing something.

 src/libvirt-machine-properties.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 9544c0a..4db8d3b 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -417,6 +417,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
         button = new Gtk.Button.with_label (_("Restart"));
         button.clicked.connect (() => {
             machine.restart ();
+            machine.window.props_window.revert_state ();
         });
         grid.attach (button, 1, 0, 1, 1);
 
@@ -424,6 +425,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
         button.get_style_context ().add_class (Gtk.STYLE_CLASS_DESTRUCTIVE_ACTION);
         button.clicked.connect (() => {
             machine.force_shutdown ();
+            machine.window.props_window.revert_state ();
         });
         grid.attach (button, 2, 0, 1, 1);
 


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