[gnome-boxes] actions-popover: No open_in_new_win from own window
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] actions-popover: No open_in_new_win from own window
- Date: Mon, 23 Feb 2015 17:21:31 +0000 (UTC)
commit fe2b8133257874869fc671c708c9da7ac20c935e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Feb 23 17:16:36 2015 +0000
actions-popover: No open_in_new_win from own window
When a machine is already running in a separate window, clicking on 'Open
in New Window' simply brings up its window so it doesn't actually do
anything if this option is choosen from machine's window itself. Lets
just not show this useless option in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=744434
src/actions-popover.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/actions-popover.vala b/src/actions-popover.vala
index 2f6597f..d27c97e 100644
--- a/src/actions-popover.vala
+++ b/src/actions-popover.vala
@@ -32,7 +32,8 @@ private class Boxes.ActionsPopover: Gtk.Popover {
var menu = new GLib.Menu ();
// Open in new Window
- menu.append (_("Open in New Window"), "box.open-in-new-win");
+ if (machine.window == App.app.main_window || machine.window != window)
+ menu.append (_("Open in New Window"), "box.open-in-new-win");
// Favorite
if (("favorite" in machine.config.categories))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]