[pinpoint] Do not show previous/next preview on first/last slide
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] Do not show previous/next preview on first/last slide
- Date: Tue, 30 Oct 2012 22:18:22 +0000 (UTC)
commit 61168ad6de3f1336d2380cb2c919c7e8b989d049
Author: Christoph Fischer <chris toph de>
Date: Mon May 7 20:31:44 2012 +0200
Do not show previous/next preview on first/last slide
pp-clutter.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pp-clutter.c b/pp-clutter.c
index 0d44c26..741f059 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -1951,6 +1951,15 @@ static gboolean update_speaker_screen (ClutterRenderer *renderer)
elapsed_part = current_slide_time / current_slide_duration;
}
+ // if first slide, do not show "previous"
+ if (!pp_slidep->prev) clutter_actor_hide(renderer->speaker_prev);
+ else clutter_actor_show(renderer->speaker_prev);
+
+ // same for last slide
+ if (!pp_slidep->next) clutter_actor_hide(renderer->speaker_next);
+ else clutter_actor_show(renderer->speaker_next);
+
+
{
float scale;
scale = nh / clutter_actor_get_height (renderer->speaker_next) * 0.4;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]