fix countdown first number

This commit is contained in:
Andreas Frisch 2016-04-26 23:58:37 +02:00
parent 38ebd91494
commit b8f8f9f24a

View file

@ -124,7 +124,7 @@ void photo_booth_window_start_countdown (PhotoBoothWindow *win, gint count)
PhotoBoothWindowPrivate *priv; PhotoBoothWindowPrivate *priv;
GST_DEBUG ("photo_booth_window_start_countdown %i", count); GST_DEBUG ("photo_booth_window_start_countdown %i", count);
priv = photo_booth_window_get_instance_private (win); priv = photo_booth_window_get_instance_private (win);
priv->countdown = count; priv->countdown = count+1;
_pbw_tick_countdown(win); _pbw_tick_countdown(win);
gtk_widget_show (GTK_WIDGET (priv->countdown_label)); gtk_widget_show (GTK_WIDGET (priv->countdown_label));
g_timeout_add (1000, (GSourceFunc) _pbw_tick_countdown, win); g_timeout_add (1000, (GSourceFunc) _pbw_tick_countdown, win);