[bijiben] lastUpdated: fix the string
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] lastUpdated: fix the string
- Date: Tue, 27 Aug 2013 23:39:48 +0000 (UTC)
commit 2ec401e78c7a3e912d63b629f2385454beeffded
Author: Pierre-Yves Luyten <py luyten fr>
Date: Wed Aug 28 01:10:52 2013 +0200
lastUpdated: fix the string
Do not use empty space in the translatable string.
See 706476
src/bjb-note-view.c | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/src/bjb-note-view.c b/src/bjb-note-view.c
index 2587e14..d2ff02e 100644
--- a/src/bjb-note-view.c
+++ b/src/bjb-note-view.c
@@ -213,7 +213,7 @@ copy_note_color_to_last_updated_background (BjbNoteView *self)
ClutterActor *
bjb_note_view_last_updated_actor_new (BjbNoteView *self)
{
- ClutterActor *result, *last, *value;
+ ClutterActor *result, *text;
ClutterLayoutManager *layout;
ClutterColor last_up_col = {122,122,122,255};
@@ -223,19 +223,24 @@ bjb_note_view_last_updated_actor_new (BjbNoteView *self)
layout = clutter_box_layout_new ();
clutter_actor_set_layout_manager (result, layout);
- last = clutter_text_new ();
+ text = clutter_text_new ();
/* "Last updated" precedes the note last updated date */
- clutter_text_set_text (CLUTTER_TEXT (last), _("Last updated "));
- clutter_text_set_font_name (CLUTTER_TEXT (last), "Arial 12px");
- clutter_text_set_color (CLUTTER_TEXT (last), &last_up_col );
- clutter_actor_add_child (result, last);
- value = clutter_text_new ();
+ clutter_text_set_text (CLUTTER_TEXT (text), _("Last updated"));
+ clutter_text_set_font_name (CLUTTER_TEXT (text), "Arial 12px");
+ clutter_text_set_color (CLUTTER_TEXT (text), &last_up_col );
+ clutter_actor_add_child (result, text);
+
+ text = clutter_text_new ();
+ clutter_text_set_text (CLUTTER_TEXT (text), " ");
+ clutter_actor_add_child (result, text);
+
+ text = clutter_text_new ();
last_updated_str = biji_note_obj_get_last_change_date_string (
self->priv->note);
- clutter_text_set_text (CLUTTER_TEXT (value), last_updated_str);
- clutter_text_set_font_name (CLUTTER_TEXT (value), "Arial 12px");
- clutter_actor_add_child (result, value);
+ clutter_text_set_text (CLUTTER_TEXT (text), last_updated_str);
+ clutter_text_set_font_name (CLUTTER_TEXT (text), "Arial 12px");
+ clutter_actor_add_child (result, text);
clutter_actor_show (result);
return result ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]