After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735045 - Stopping/deletion of machine should destroy its window
Stopping/deletion of machine should destroy its window
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.13.x
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
: 736095 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-08-19 11:09 UTC by Zeeshan Ali
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
app-window: Turn current_item into property (1.19 KB, patch)
2014-09-04 21:50 UTC, Zeeshan Ali
committed Details | Review
app-window: Close on machine stopping (1.59 KB, patch)
2014-09-04 21:50 UTC, Zeeshan Ali
committed Details | Review
machine: Turn 'deleted' into a property (1.04 KB, patch)
2014-09-04 21:50 UTC, Zeeshan Ali
committed Details | Review
app-window: Close on machine deletion (1.69 KB, patch)
2014-09-04 21:50 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2014-08-19 11:09:59 UTC
If a machine running in a secondary window is destroyed or stopped, Boxes should automatically destroy the window.
Comment 1 Zeeshan Ali 2014-09-04 21:50:20 UTC
Created attachment 285423 [details] [review]
app-window: Turn current_item into property

We need this to be able to (un)hook on current item's state changes. Not
using automatic properties cause we need to do that from setter.
Comment 2 Zeeshan Ali 2014-09-04 21:50:26 UTC
Created attachment 285424 [details] [review]
app-window: Close on machine stopping

If current machine changes state to a non-running state and window is
not main, close the window.
Comment 3 Zeeshan Ali 2014-09-04 21:50:31 UTC
Created attachment 285425 [details] [review]
machine: Turn 'deleted' into a property

This is so that we can easily listen to a machine (of interest) getting
deleted from other modules.
Comment 4 Zeeshan Ali 2014-09-04 21:50:35 UTC
Created attachment 285426 [details] [review]
app-window: Close on machine deletion

If current machine is deleted and window is not main, close the window.
Comment 5 Zeeshan Ali 2014-09-04 21:51:51 UTC
Pusing these fixes already. Feel free to do a review still.

Attachment 285423 [details] pushed as 3a7e28c - app-window: Turn current_item into property
Attachment 285424 [details] pushed as 054039f - app-window: Close on machine stopping
Attachment 285425 [details] pushed as 353bdee - machine: Turn 'deleted' into a property
Attachment 285426 [details] pushed as 560b801 - app-window: Close on machine deletion
Comment 6 Zeeshan Ali 2014-09-05 16:57:48 UTC
*** Bug 736095 has been marked as a duplicate of this bug. ***
Comment 7 vladimir benes 2014-09-11 12:55:48 UTC
Hi all,
it works quite well, except of two errors shown if on liveCD (cannot connect to Live box box was deleted automatically), we should probably create some hierarchical (not layered) notifications to avoid this. 

New bug report? The question is if both should be shown or just the most critical one. 

Anyway, Cannot connect to.. is probably a bug here)
Comment 8 Zeeshan Ali 2014-09-11 13:19:05 UTC
(In reply to comment #7)
> Hi all,
> it works quite well, except of two errors shown if on liveCD (cannot connect to
> Live box box was deleted automatically),

For the record (if anyone reading isn't too familiar with Boxes), the two errors are "Can not connect to %s" and "Live box %s was deleted automatically. [Undo]" 

>we should probably create some
> hierarchical (not layered) notifications to avoid this. 

AFAIK, they already are hierarchical. Is the issue that you get both notifications at the same time? You shouldn't be getting "Cannot connect to %s" one. Thats a bug in spice: https://bugs.freedesktop.org/show_bug.cgi?id=83692