aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-09-11 01:19:24 +0200
committerfiaxh <git@lightrise.org>2019-09-11 16:20:48 +0200
commit43720d3d2fdf9d42771c6c0ae8bea5db8b33ca41 (patch)
tree3440644700d4522d8399e6133cf77c9e5220cca9 /main/src/ui/conversation_selector
parent2a70a4e83f8df7141672315504394295f1cdee3a (diff)
downloaddino-43720d3d2fdf9d42771c6c0ae8bea5db8b33ca41.tar.gz
dino-43720d3d2fdf9d42771c6c0ae8bea5db8b33ca41.zip
Remove some use_markup usages, put skeleton header into .ui file
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_selector_row.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala
index 6ffefc94..c7331b31 100644
--- a/main/src/ui/conversation_selector/conversation_selector_row.vala
+++ b/main/src/ui/conversation_selector/conversation_selector_row.vala
@@ -136,6 +136,7 @@ public class ConversationSelectorRow : ListBoxRow {
nick_label.label = last_message.direction == Message.DIRECTION_SENT ? _("Me") + ": " : "";
}
+ name_label.attributes.filter((attr) => attr.equal(attr_style_new(Pango.Style.ITALIC)));
message_label.label = Util.summarize_whitespaces_to_space(last_message.body);
break;
case FileItem.TYPE:
@@ -151,10 +152,11 @@ public class ConversationSelectorRow : ListBoxRow {
}
bool file_is_image = transfer.mime_type != null && transfer.mime_type.has_prefix("image");
+ message_label.attributes.insert(attr_style_new(Pango.Style.ITALIC));
if (transfer.direction == Message.DIRECTION_SENT) {
- message_label.label = "<i>" + (file_is_image ? _("Image sent") : _("File sent") ) + "</i>";
+ message_label.label = (file_is_image ? _("Image sent") : _("File sent") );
} else {
- message_label.label = "<i>" + (file_is_image ? _("Image received") : _("File received") ) + "</i>";
+ message_label.label = (file_is_image ? _("Image received") : _("File received") );
}
break;
}