[gnome-boxes] libvirt-machine: Drop use of AppWindow singleton



commit 6625c9ee18dab548358533e4872d332e2e7a5499
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Jul 18 16:01:13 2014 +0200

    libvirt-machine: Drop use of AppWindow singleton
    
    This is needed to drop the use of AppWindow singleton and therefore to
    make multiple windows possible.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732098

 src/libvirt-machine.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 414ee61..5386c6b 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -439,7 +439,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
 
     public void force_shutdown (bool confirm = true) {
         if (confirm) {
-            var dialog = new Gtk.MessageDialog (App.window,
+            var dialog = new Gtk.MessageDialog (window,
                                                 Gtk.DialogFlags.DESTROY_WITH_PARENT,
                                                 Gtk.MessageType.QUESTION,
                                                 Gtk.ButtonsType.NONE,
@@ -599,7 +599,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
             };
 
             var message = _("Restart of '%s' is taking too long. Force it to shutdown?").printf (name);
-            notification = App.window.notificationbar.display_for_action (message,
+            notification = window.notificationbar.display_for_action (message,
                                                                        _("_Shutdown"),
                                                                        (owned) really_force_shutdown,
                                                                        null,


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