feat: indicator tooltips

This commit is contained in:
Evangelos Paterakis 2022-12-15 21:31:35 +02:00
parent 2461d49fff
commit aae418ab4c
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
2 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,7 @@
<property name="can_focus">0</property>
<property name="icon_name">tooth-pin-symbolic</property>
<property name="icon_size">1</property>
<property name="tooltip_text" translatable="yes">Pinned</property>
<style>
<class name="dim-label"/>
</style>

View File

@ -201,6 +201,10 @@ public class Tooth.Widgets.Status : ListBoxRow {
target.set_string (accounts.active.visibility[src.get_string ()].icon_name);
return true;
});
status.formal.bind_property ("visibility", indicator, "tooltip-text", BindingFlags.SYNC_CREATE, (b, src, ref target) => {
target.set_string (accounts.active.visibility[src.get_string ()].name);
return true;
});
status.formal.bind_property ("account", avatar, "account", BindingFlags.SYNC_CREATE);
// Spoiler //TODO: Spoilers