avatar: Use HdyAvatar for displaying avatars
This commit is contained in:
parent
baf29a9214
commit
6a052031df
11 changed files with 66 additions and 273 deletions
|
|
@ -60,9 +60,11 @@
|
|||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage" id="avatar">
|
||||
<object class="HdyAvatar" id="avatar">
|
||||
<property name="visible">True</property>
|
||||
<property name="pixel_size">48</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="show-initials">True</property>
|
||||
<property name="size">48</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<!-- Generated with glade 3.22.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.14"/>
|
||||
<requires lib="libhandy" version="1.0"/>
|
||||
<template class="ConversationMessage" parent="GtkGrid">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
|
|
@ -11,12 +12,11 @@
|
|||
<property name="hexpand">True</property>
|
||||
<property name="column_spacing">6</property>
|
||||
<child>
|
||||
<object class="GtkImage" id="avatar">
|
||||
<property name="width_request">18</property>
|
||||
<property name="height_request">18</property>
|
||||
<object class="HdyAvatar" id="avatar">
|
||||
<property name="visible">True</property>
|
||||
<property name="valign">start</property>
|
||||
<property name="pixel_size">48</property>
|
||||
<property name="show-initials">True</property>
|
||||
<property name="size">48</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue