[gnome-boxes] actions-popover: Remove "Pause" from display mode
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] actions-popover: Remove "Pause" from display mode
- Date: Fri, 22 Apr 2016 13:44:58 +0000 (UTC)
commit e0f5ba8a6f2d6f4c8dc0c027556361071e61fbdd
Author: Visarion Alexandru <viorel visarion gmail com>
Date: Sun Apr 17 00:05:27 2016 +0300
actions-popover: Remove "Pause" from display mode
Remove "Pause" action from the popover menu, in display mode.
https://bugzilla.gnome.org/show_bug.cgi?id=745691
src/actions-popover.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index a33a2b5..446bec1 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -53,12 +53,12 @@ private class Boxes.ActionsPopover: Gtk.Popover {
action.set_enabled (machine.is_running);
}
- // Pause
- section.append (_("Pause"), "box.pause");
- var action = action_group.lookup_action ("pause") as GLib.SimpleAction;
- action.set_enabled (machine.can_save);
-
if (window.ui_state != UIState.DISPLAY) {
+ // Pause
+ section.append (_("Pause"), "box.pause");
+ var action = action_group.lookup_action ("pause") as GLib.SimpleAction;
+ action.set_enabled (machine.can_save);
+
// Delete
section.append (_("Delete"), "box.delete");
action = action_group.lookup_action ("delete") as GLib.SimpleAction;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]