[gnome-boxes] actions-popover: Switch to collection on deletion



commit 5f5fb18ec065a5235cf1e4cd3ccbed1a72fc3f3a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Nov 14 19:49:23 2014 +0000

    actions-popover: Switch to collection on deletion
    
    In the following patch, we'd show this popover in display mode too and it
    looks really weird if we keep showing the display of the machine that
    user just deleted. Better switch to collection view just before deleting
    (from view) it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735329

 src/actions-popover.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 1d3fcb5..14a0982 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -77,6 +77,8 @@ private class Boxes.ActionsPopover: Gtk.Popover {
     }
 
     private void delete_activated () {
+        window.set_state (UIState.COLLECTION);
+
         var items = new List<CollectionItem> ();
         items.append (window.current_item);
 


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