[pinpoint/wip/speaker-view] added speakermode and rehearse commandline options
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint/wip/speaker-view] added speakermode and rehearse commandline options
- Date: Wed, 1 Jun 2011 11:23:23 +0000 (UTC)
commit ffdd5fca83ea355b6e352bc83d35a8fcf561bd19
Author: �yvind Kolås <pippin gimp org>
Date: Wed May 25 23:33:06 2011 +0100
added speakermode and rehearse commandline options
introduction.pin | 1 +
pinpoint.c | 6 ++++++
pinpoint.h | 8 +++++---
pp-clutter.c | 3 ++-
4 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/introduction.pin b/introduction.pin
index 7ffa5b1..0795640 100755
--- a/introduction.pin
+++ b/introduction.pin
@@ -1,6 +1,7 @@
#!/usr/bin/env pinpoint
[font=Sans 50px]
[bg.jpg]
+[duration=23]
- The bits above this point are defaults for every slide in the presentation
Welcome to pinpoint
diff --git a/pinpoint.c b/pinpoint.c
index a13bd8e..378aa88 100644
--- a/pinpoint.c
+++ b/pinpoint.c
@@ -84,6 +84,8 @@ PinPointPoint *point_defaults = &default_point;
char *pp_output_filename = NULL;
gboolean pp_fullscreen = FALSE;
gboolean pp_maximized = FALSE;
+gboolean pp_speakermode = FALSE;
+gboolean pp_rehearse = FALSE;
static GOptionEntry entries[] =
{
@@ -94,6 +96,10 @@ static GOptionEntry entries[] =
" [command=] spawned apps.", NULL},
{ "fullscreen", 'f', 0, G_OPTION_ARG_NONE, &pp_fullscreen,
"Start in fullscreen mode", NULL},
+ { "speakermode", 's', 0, G_OPTION_ARG_NONE, &pp_speakermode,
+ "Show speakermode window", NULL},
+ { "rehearse", 'r', 0, G_OPTION_ARG_NONE, &pp_rehearse,
+ "Rehearse timings", NULL},
{ "output", 'o', 0, G_OPTION_ARG_STRING, &pp_output_filename,
"Output presentation to FILE\n"
" (formats supported: pdf)", "FILE" },
diff --git a/pinpoint.h b/pinpoint.h
index 9f67920..f54d5a8 100644
--- a/pinpoint.h
+++ b/pinpoint.h
@@ -103,9 +103,11 @@ struct _PinPointPoint
void *data; /* the renderer can attach data here */
};
-extern char *pp_output_filename;
-extern gboolean pp_fullscreen;
-extern gboolean pp_maximized;
+extern char *pp_output_filename;
+extern gboolean pp_fullscreen;
+extern gboolean pp_maximized;
+extern gboolean pp_speakermode;
+extern gboolean pp_rehearse;
extern GList *pp_slides; /* list of slide text */
extern GList *pp_slidep; /* current slide */
diff --git a/pp-clutter.c b/pp-clutter.c
index 37c6cd2..e786517 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -451,7 +451,8 @@ clutter_renderer_init (PinPointRenderer *pp_renderer,
GFileMonitor *monitor;
ClutterActor *stage;
- renderer->speaker_mode = TRUE; /* enable rendering of speaker window */
+ if (pp_speakermode)
+ renderer->speaker_mode = TRUE; /* enable rendering of speaker window */
renderer->stage = stage = clutter_stage_new ();
renderer->root = clutter_group_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]