[banshee] Add `--fullscreen` switch (bgo#615223)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Add `--fullscreen` switch (bgo#615223)
- Date: Sat, 17 Apr 2010 02:11:52 +0000 (UTC)
commit af0e2d71d43afd0bc823f0944df69f59afaf2827
Author: Jeroen Budts <jeroen lightyear be>
Date: Sat Apr 17 12:10:06 2010 +1000
Add `--fullscreen` switch (bgo#615223)
Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>
src/Clients/Booter/Booter/Entry.cs | 1 +
src/Clients/Halie/Halie/Client.cs | 2 +
.../Banshee.Gui/BaseClientWindow.cs | 31 +++++++++++--------
.../Banshee.Gui/IClientWindow.cs | 1 +
4 files changed, 22 insertions(+), 13 deletions(-)
---
diff --git a/src/Clients/Booter/Booter/Entry.cs b/src/Clients/Booter/Booter/Entry.cs
index a60d81b..cd6652e 100644
--- a/src/Clients/Booter/Booter/Entry.cs
+++ b/src/Clients/Booter/Booter/Entry.cs
@@ -196,6 +196,7 @@ namespace Booter
new LayoutGroup ("ui", Catalog.GetString ("User Interface Options"),
new LayoutOption ("show|--present", Catalog.GetString ("Present the user interface on the active workspace")),
+ new LayoutOption ("fullscreen", Catalog.GetString ("Enter the full-screen mode")),
new LayoutOption ("hide", Catalog.GetString ("Hide the user interface")),
new LayoutOption ("no-present", Catalog.GetString ("Do not present the user interface, regardless of any other options")),
new LayoutOption ("show-import-media", Catalog.GetString ("Present the import media dialog box")),
diff --git a/src/Clients/Halie/Halie/Client.cs b/src/Clients/Halie/Halie/Client.cs
index 0039950..cf1f973 100644
--- a/src/Clients/Halie/Halie/Client.cs
+++ b/src/Clients/Halie/Halie/Client.cs
@@ -51,6 +51,7 @@ namespace Halie
{
void Present ();
void Hide ();
+ void Fullscreen ();
}
[Interface ("org.bansheeproject.Banshee.GlobalUIActions")]
@@ -101,6 +102,7 @@ namespace Halie
switch (arg.Key) {
case "show":
case "present": present = true; break;
+ case "fullscreen": window.Fullscreen (); break;
case "hide":
present = false;
window.Hide ();
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
index 8b62835..1428a7a 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
@@ -97,19 +97,24 @@ namespace Banshee.Gui
}
}
- protected void InitialShowPresent ()
- {
- bool hide = ApplicationContext.CommandLine.Contains ("hide");
- bool present = !hide && !ApplicationContext.CommandLine.Contains ("no-present");
-
- if (!hide) {
- Show ();
- }
-
- if (present) {
- Present ();
- }
- }
+ protected void InitialShowPresent ()
+ {
+ bool hide = ApplicationContext.CommandLine.Contains ("hide");
+ bool present = !hide && !ApplicationContext.CommandLine.Contains ("no-present");
+ bool fullscreen = !hide && ApplicationContext.CommandLine.Contains ("fullscreen");
+
+ if (!hide) {
+ Show ();
+ }
+
+ if (present) {
+ Present ();
+ }
+
+ if (fullscreen) {
+ Fullscreen ();
+ }
+ }
public virtual Box ViewContainer { get { return null; } }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/IClientWindow.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/IClientWindow.cs
index a82ce85..cf7053b 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/IClientWindow.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/IClientWindow.cs
@@ -38,5 +38,6 @@ namespace Banshee.Gui
{
void Present ();
void Hide ();
+ void Fullscreen ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]