Commit 011742ab authored by Luis de Bethencourt's avatar Luis de Bethencourt

snappy: blind option runs snappy without ui

parent 2e3d3355
......@@ -65,13 +65,15 @@ close_down (UserInterface * ui, GstEngine * engine)
/* Process command arguments */
gboolean
process_args (int argc, char *argv[],
gchar * file_list[], gboolean * fullscreen, gboolean *hide,
gboolean * loop, gboolean * secret, gchar ** suburi, gboolean * tags,
GOptionContext * context)
gchar * file_list[], gboolean * blind, gboolean * fullscreen,
gboolean * hide, gboolean * loop, gboolean * secret, gchar ** suburi,
gboolean * tags, GOptionContext * context)
{
gboolean recent = FALSE, version = FALSE;
guint c, index, pos = 0;
GOptionEntry entries[] = {
{"blind", 'b', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, blind,
"Blind mode", NULL},
{"fullscreen", 'f', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, fullscreen,
"Fullscreen mode", NULL},
{"hide-controls", 'h', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, hide,
......@@ -156,7 +158,7 @@ main (int argc, char *argv[])
ClutterActor *video_texture;
GstElement *sink;
gboolean ok, fullscreen = FALSE, hide = FALSE, loop = FALSE;
gboolean ok, blind = FALSE, fullscreen = FALSE, hide = FALSE, loop = FALSE;
gboolean secret = FALSE, tags = FALSE;
gint ret = 0;
guint c, index, pos = 0;
......@@ -175,13 +177,14 @@ main (int argc, char *argv[])
context = g_option_context_new ("<media file> - Play movie files");
/* Process command arguments */
ok = process_args (argc, argv, file_list, &fullscreen, &hide, &loop, &secret,
&suburi, &tags, context);
ok = process_args (argc, argv, file_list, &blind, &fullscreen, &hide, &loop,
&secret, &suburi, &tags, context);
if (!ok)
goto quit;
/* User Interface */
ui = g_new (UserInterface, 1);
ui->blind = blind;
ui->fullscreen = fullscreen;
ui->hide = hide;
ui->tags = tags;
......
......@@ -1108,7 +1108,8 @@ interface_start (UserInterface * ui, gchar * uri)
g_timeout_add (SECOND, progress_update_text, ui);
clutter_actor_show (ui->stage);
if (!ui->blind)
clutter_actor_show (ui->stage);
}
gboolean
......
......@@ -72,7 +72,7 @@ typedef struct _UserInterface UserInterface;
struct _UserInterface
{
gboolean controls_showing, keep_showing_controls;
gboolean fullscreen, hide, penalty_box_active, tags;
gboolean blind, fullscreen, hide, penalty_box_active, tags;
gboolean rotated;
gint title_length, controls_timeout, progress_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment