[fractal/multi-account] Add avatar to each account switcher list item
- From: Alejandro Domínguez <aledomu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/multi-account] Add avatar to each account switcher list item
- Date: Tue, 20 Jul 2021 23:17:41 +0000 (UTC)
commit 368a4d993d704b340357aacd44b854de99dc3c01
Author: Alejandro Domínguez <adomu net-c com>
Date: Wed Jul 21 01:15:58 2021 +0200
Add avatar to each account switcher list item
data/resources/ui/sidebar-account-switcher-item.ui | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/data/resources/ui/sidebar-account-switcher-item.ui
b/data/resources/ui/sidebar-account-switcher-item.ui
index 5a8ca60b..aec91cf3 100644
--- a/data/resources/ui/sidebar-account-switcher-item.ui
+++ b/data/resources/ui/sidebar-account-switcher-item.ui
@@ -3,7 +3,20 @@
<template class="GtkListItem">
<property name="child">
<object class="GtkBox">
- <child>
+ <child type="start">
+ <object class="ComponentsAvatar">
+ <binding name="item">
+ <lookup name="avatar" type="User">
+ <lookup name="user" type="Session">
+ <lookup name="child" type="GtkStackPage">
+ <lookup name="item">GtkListItem</lookup>
+ </lookup>
+ </lookup>
+ </lookup>
+ </binding>
+ </object>
+ </child>
+ <child type="start">
<object class="GtkLabel">
<binding name="label">
<lookup name="display-name" type="User">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]