aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-15 00:36:56 +0100
committerfiaxh <git@mx.ax.lt>2017-03-15 21:55:26 +0100
commit4faee9f08dca187b04a6f5719fe766a3b4375460 (patch)
treeb16c7d1c5e363454624610db42b5c4f1d4aa309b /main/src/ui/conversation_selector
parent5038db063ec3981385dd68a3069e8edd0b52075d (diff)
downloaddino-4faee9f08dca187b04a6f5719fe766a3b4375460.tar.gz
dino-4faee9f08dca187b04a6f5719fe766a3b4375460.zip
Set dino-specific icons as part of icon theme
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/chat_row.vala11
1 files changed, 4 insertions, 7 deletions
diff --git a/main/src/ui/conversation_selector/chat_row.vala b/main/src/ui/conversation_selector/chat_row.vala
index 8b36b333..96f6921d 100644
--- a/main/src/ui/conversation_selector/chat_row.vala
+++ b/main/src/ui/conversation_selector/chat_row.vala
@@ -61,18 +61,15 @@ public class ChatRow : ConversationRow {
Show show = PresenceManager.get_instance(stream_interactor).get_last_show(full_jids[i], conversation.account);
Image image = new Image();
- Pixbuf pixbuf;
- int icon_size = 13 * image.scale_factor;
if (show.as == Show.AWAY) {
- pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_away.svg", icon_size, icon_size, true);
+ image.set_from_icon_name("dino-status-away", IconSize.SMALL_TOOLBAR);
} else if (show.as == Show.XA || show.as == Show.DND) {
- pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_dnd.svg", icon_size, icon_size, true);
+ image.set_from_icon_name("dino-status-dnd", IconSize.SMALL_TOOLBAR);
} else if (show.as == Show.CHAT) {
- pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_chat.svg", icon_size, icon_size, true);
+ image.set_from_icon_name("dino-status-chat", IconSize.SMALL_TOOLBAR);
} else {
- pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_online.svg", icon_size, icon_size, true);
+ image.set_from_icon_name("dino-status-online", IconSize.SMALL_TOOLBAR);
}
- Util.image_set_from_scaled_pixbuf(image, pixbuf);
box.add(image);
Label resource = new Label(full_jids[i].resourcepart);