[pinpoint] Speaker notes will now correctly wrap (explicitly set word wrap mode and width of speaker_notes acto
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pinpoint] Speaker notes will now correctly wrap (explicitly set word wrap mode and width of speaker_notes acto
- Date: Tue, 30 Oct 2012 22:17:52 +0000 (UTC)
commit 195f67e5d00d762d56cd73abfdb1dacf5ed85c83
Author: Christoph Fischer <chris toph de>
Date: Mon May 7 10:02:37 2012 +0200
Speaker notes will now correctly wrap (explicitly set word wrap mode and
width of speaker_notes actor).
pp-clutter.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pp-clutter.c b/pp-clutter.c
index 9900de2..bd2dead 100644
--- a/pp-clutter.c
+++ b/pp-clutter.c
@@ -653,14 +653,17 @@ 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", 20.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);
+
renderer->speaker_time_remaining = g_object_new (CLUTTER_TYPE_TEXT,
"x", 300.0,
"y", 0.0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]