Skip to content
Browse files

No need to specify seconds in the start time any more

  • Loading branch information...
1 parent 0deb7de commit d217c7680d71ec9044345d7d5af7a1570ec7ef6b @davvil committed May 10, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −0 man/pdfpc.1
  2. +1 −1 src/classes/window/presenter.vala
  3. +1 −1 src/pdfpc.vala
View
3 man/pdfpc.1
@@ -37,6 +37,9 @@ Duration in minutes of the presentation used for timer display. If not given or
if a value of 0 is specified, the clock just measures the time in the
presentation.
.TP
+.BI "\-t, \-\-start-time"=T
+Start time of the presentation to be used as a countdown. (Format: HH:MM (24h))
+.TP
.BI "\-l, \-\-last-minutes"=N
Time in minutes, from which on the timer changes its color. (Default 5 minutes)
.TP
View
2 src/classes/window/presenter.vala
@@ -599,7 +599,7 @@ namespace org.westhoffswelt.pdfpresenter.Window {
private time_t parseStartTime( string start_time )
{
var tm = Time.local( time_t() );
- tm.strptime( start_time, "%H:%M:%S" );
+ tm.strptime( start_time + ":00", "%H:%M:%S" );
return tm.mktime();
}
View
2 src/pdfpc.vala
@@ -62,7 +62,7 @@ namespace org.westhoffswelt.pdfpresenter {
*/
const OptionEntry[] options = {
{ "duration", 'd', 0, OptionArg.INT, ref Options.duration, "Duration in minutes of the presentation used for timer display.", "N" },
- { "start-time", 't', 0, OptionArg.STRING, ref Options.start_time, "Start time of the presentation to be used as a countdown. (Format: hh:mm:ss (24h))", "T" },
+ { "start-time", 't', 0, OptionArg.STRING, ref Options.start_time, "Start time of the presentation to be used as a countdown. (Format: HH:MM (24h))", "T" },
{ "last-minutes", 'l', 0, OptionArg.INT, ref Options.last_minutes, "Time in minutes, from which on the timer changes its color. (Default 5 minutes)", "N" },
{ "current-size", 'u', 0, OptionArg.INT, ref Options.current_size, "Percentage of the presenter screen to be used for the current slide. (Default 60)", "N" },
{ "overview-min-size", 'o', 0, OptionArg.INT, ref Options.min_overview_width, "Minimum width for the overview miniatures, in pixels. (Default 150)", "N" },

0 comments on commit d217c76

Please sign in to comment.
Something went wrong with that request. Please try again.