feat: indicator tooltips
This commit is contained in:
parent
2461d49fff
commit
aae418ab4c
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue