[Xfce4-commits] <parole:master> Added -F --fullscreen to start in fullscreen mode.
Ali Abdallah
noreply at xfce.org
Fri Apr 15 20:16:01 CEST 2011
Updating branch refs/heads/master
to 727ff8e77aa3c9da5081aa632fefb18b58a81ad1 (commit)
from 4770f9661ddae192446ddb83d3d0cc0f7245839c (commit)
commit 727ff8e77aa3c9da5081aa632fefb18b58a81ad1
Author: Ali Abdallah <aliov at xfce.org>
Date: Fri Apr 15 17:46:17 2011 +0200
Added -F --fullscreen to start in fullscreen mode.
src/main.c | 5 +++++
src/parole-player.c | 2 +-
src/parole-player.h | 3 +++
3 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/main.c b/src/main.c
index 524a731..fe35937 100644
--- a/src/main.c
+++ b/src/main.c
@@ -217,6 +217,7 @@ int main (int argc, char **argv)
gboolean lower_volume = FALSE;
gboolean mute = FALSE;
gboolean no_plugins = FALSE;
+ gboolean fullscreen = FALSE;
gchar *client_id = NULL;
GOptionEntry option_entries[] =
@@ -234,6 +235,7 @@ int main (int argc, char **argv)
{ "lower-volume", 'l', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &lower_volume, N_("Lower volume"), NULL },
{ "mute", 'm', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &mute, N_("Mute volume"), NULL },
{ "version", 'V', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &version, N_("Version information"), NULL },
+ { "fullscreen", 'F', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &fullscreen, N_("Start in fullscreen mode"), NULL },
{ "xv", '\0', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_CALLBACK, (GOptionArgFunc) xv_option_given, N_("Enabled/Disable XV support"), NULL},
{ "sm-client-id", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &client_id, NULL, NULL },
{G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_FILENAME_ARRAY, &filenames, N_("Media to play"), NULL},
@@ -318,6 +320,9 @@ int main (int argc, char **argv)
parole_session_real_init (session);
player = parole_player_new ();
+
+ if (fullscreen)
+ parole_player_full_screen (player, TRUE);
if ( filenames && filenames[0] != NULL )
{
diff --git a/src/parole-player.c b/src/parole-player.c
index 5dbb434..b4332ea 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1080,7 +1080,7 @@ parole_player_move_fs_window (ParolePlayer *player)
rect.height + rect.y - player->priv->play_box->allocation.height);
}
-static void
+void
parole_player_full_screen (ParolePlayer *player, gboolean fullscreen)
{
gint npages;
diff --git a/src/parole-player.h b/src/parole-player.h
index 8060a22..af81e9f 100644
--- a/src/parole-player.h
+++ b/src/parole-player.h
@@ -56,6 +56,9 @@ void parole_player_play_uri_disc (ParolePlayer *player,
void parole_player_terminate (ParolePlayer *player);
+void parole_player_full_screen (ParolePlayer *player,
+ gboolean fullscreen);
+
G_END_DECLS
#endif /* __PAROLE_PLAYER_H */
More information about the Xfce4-commits
mailing list