[pinpoint] Repositioned speaker notes box to better use the available height



commit e952c3cf5f312d78a4277d4cf093c19e1f1c2947
Author: Christoph Fischer <chris toph de>
Date:   Mon May 7 14:26:12 2012 +0200

    Repositioned speaker notes box to better use the available height

 pp-clutter.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pp-clutter.c b/pp-clutter.c
index bd2dead..c580ced 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -653,13 +653,12 @@ clutter_renderer_init_speaker_screen (ClutterRenderer *renderer)
 {
   renderer->speaker_screen = clutter_stage_new ();
   clutter_stage_set_title(CLUTTER_STAGE(renderer->speaker_screen), "Pinpoint speaker screen");
-//20.0
+
   renderer->speaker_notes = g_object_new (CLUTTER_TYPE_TEXT,
                                 "x", 10.0,
                                 "y", 0.0,
                                 "font-name",      "Sans 20px",
                                 "color",          &white,
-                                "width", clutter_actor_get_width(CLUTTER_ACTOR(renderer->speaker_screen)),
                                 NULL);
 
   clutter_text_set_line_wrap(CLUTTER_TEXT(renderer->speaker_notes), TRUE);
@@ -1978,7 +1977,7 @@ static gboolean update_speaker_screen (ClutterRenderer *renderer)
                               nh * 0.7);
   clutter_actor_set_position (renderer->speaker_notes,
                               nw * 0.46,
-                              nh * 0.35);
+                              (20.0+clutter_actor_get_height(CLUTTER_ACTOR(renderer->speaker_buttons_group))));
   clutter_actor_set_width    (renderer->speaker_notes,
                               nw * 0.5);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]