[gnome-boxes] Allow to open in full screen
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Allow to open in full screen
- Date: Wed, 23 May 2012 23:02:01 +0000 (UTC)
commit 07fee8d08bf7d8de267103bc2cc5cba82e196c52
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Wed May 23 13:28:23 2012 +0200
Allow to open in full screen
Add a --full-screen / -f command line argument to open
in full screen.
https://bugzilla.gnome.org/show_bug.cgi?id=676632
src/main.vala | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index 697784b..517f6d9 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -3,13 +3,14 @@ using Config;
using Posix;
private static bool version;
+private static bool fullscreen;
private static bool checks;
private static string[] uris;
private const OptionEntry[] options = {
{ "version", 0, 0, OptionArg.NONE, ref version, N_("Display version number"), null },
- // FIXME: make it translatable after string freeze
- { "checks", 0, 0, OptionArg.NONE, ref checks, "Check virtualization capabilities", null },
+ { "full-screen", 'f', 0, OptionArg.NONE, ref fullscreen, N_("Open in full screen"), null },
+ { "checks", 0, 0, OptionArg.NONE, ref checks, N_("Check virtualization capabilities"), null },
// A 'broker' is a virtual-machine manager (could be local or remote). Currently libvirt is the only one supported.
{ "", 0, 0, OptionArg.STRING_ARRAY, ref uris, N_("URI to display, broker or installer media"), null },
{ null }
@@ -103,6 +104,8 @@ public int main (string[] args) {
} else if (first_time) {
app.ui_state = Boxes.UIState.WIZARD;
}
+
+ app.fullscreen = fullscreen;
});
return app.run ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]