[gnome-boxes] app: Remove 'fullscreen' & 'properties' from global menu
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app: Remove 'fullscreen' & 'properties' from global menu
- Date: Tue, 22 Jan 2013 20:02:18 +0000 (UTC)
commit 6b9f9bdb5ceb573da14a194c4d96ce0f4b1f0b4e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jan 8 03:39:26 2013 +0200
app: Remove 'fullscreen' & 'properties' from global menu
These are VM-specific and don't really belong in the global menu.
https://bugzilla.gnome.org/show_bug.cgi?id=690344
src/app.vala | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 4c72714..e44a482 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -46,8 +46,6 @@ private class Boxes.App: Boxes.UI {
public string? uri { get; set; }
public Collection collection;
public CollectionFilter filter;
- public GLib.SimpleAction action_properties;
- public GLib.SimpleAction action_fullscreen;
public signal void ready (bool first_time);
public signal void item_selected (CollectionItem item);
@@ -79,14 +77,6 @@ private class Boxes.App: Boxes.UI {
action.activate.connect (() => { ui_state = UIState.WIZARD; });
application.add_action (action);
- action_fullscreen = new GLib.SimpleAction ("display.fullscreen", null);
- action_fullscreen.activate.connect (() => { fullscreen = true; });
- application.add_action (action_fullscreen);
-
- action_properties = new GLib.SimpleAction ("display.properties", null);
- action_properties.activate.connect (() => { ui_state = UIState.PROPERTIES; });
- application.add_action (action_properties);
-
action = new GLib.SimpleAction ("select-all", null);
action.activate.connect (() => { view.select (SelectionCriteria.ALL); });
application.add_action (action);
@@ -131,8 +121,6 @@ private class Boxes.App: Boxes.UI {
menu.append (_("New"), "app.new");
var display_section = new GLib.Menu ();
- display_section.append (_("Properties"), "app.display.properties");
- display_section.append (_("Fullscreen"), "app.display.fullscreen");
menu.append_section (null, display_section);
menu.append (_("About Boxes"), "app.about");
@@ -579,9 +567,6 @@ private class Boxes.App: Boxes.UI {
}
public override void ui_state_changed () {
- action_fullscreen.set_enabled (ui_state == UIState.DISPLAY);
- action_properties.set_enabled (ui_state == UIState.DISPLAY);
-
// The order is important for some widgets here (e.g properties must change its state before wizard so it can
// flush any deferred changes for wizard to pick-up when going back from properties to wizard (review).
foreach (var ui in new Boxes.UI[] { sidebar, searchbar, topbar, view, properties, wizard }) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]