Change local timeline icon

This commit is contained in:
bleakgrey 2019-03-08 15:19:14 +03:00
parent a043c16d19
commit ff72381a3f
1 changed files with 6 additions and 6 deletions

View File

@ -3,25 +3,25 @@ public class Tootle.LocalView : TimelineView {
public LocalView () {
base ("public");
}
public override string get_icon () {
return "document-open-recent-symbolic";
return Desktop.fallback_icon ("system-users-symbolic", "document-open-recent-symbolic");
}
public override string get_name () {
return _("Local Timeline");
}
public override string get_url (){
var url = base.get_url ();
url += "&local=true";
return url;
}
protected override bool is_public () {
return true;
}
public override Soup.Message? get_stream () {
var url = "%s/api/v1/streaming/?stream=public:local&access_token=%s".printf (accounts.formal.instance, accounts.formal.token);
return new Soup.Message("GET", url);