From ce680185ba10e6e2de1ded5a05e5e3ce91c02694 Mon Sep 17 00:00:00 2001 From: Justin Kim <justin.kim@collabora.com> Date: Thu, 1 Sep 2016 21:40:07 +0900 Subject: [PATCH] clutter-i18n: Move the text position 100 px below On a target board, Status Bar hides the top of the window so the text from clutter-i18n-gettext looks like not working. To show the text in a position not to be interfered by Status Bar, it needs to be moved slightly below. Signed-off-by: Justin Kim <justin.kim@collabora.com> Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D4151 --- clutter-i18n/manual/test-clutter-i18n.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clutter-i18n/manual/test-clutter-i18n.c b/clutter-i18n/manual/test-clutter-i18n.c index f3b5953..f104cd6 100644 --- a/clutter-i18n/manual/test-clutter-i18n.c +++ b/clutter-i18n/manual/test-clutter-i18n.c @@ -32,6 +32,11 @@ int main(int argc, char *argv[]) label = clutter_text_new_full ("Serif Italic 40px", _("Testing internationalization"), CLUTTER_COLOR_Black); + + /* status bar occupies the top of window, so the text isn't shown + when running on a target. It would be sufficient to draw the text + 100px below from the top. */ + clutter_actor_set_position (label, 20, 100); clutter_container_add_actor (CLUTTER_CONTAINER (stage), label); clutter_main (); -- GitLab