Change local timeline icon
This commit is contained in:
parent
a043c16d19
commit
ff72381a3f
|
@ -3,25 +3,25 @@ public class Tootle.LocalView : TimelineView {
|
||||||
public LocalView () {
|
public LocalView () {
|
||||||
base ("public");
|
base ("public");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string get_icon () {
|
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 () {
|
public override string get_name () {
|
||||||
return _("Local Timeline");
|
return _("Local Timeline");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string get_url (){
|
public override string get_url (){
|
||||||
var url = base.get_url ();
|
var url = base.get_url ();
|
||||||
url += "&local=true";
|
url += "&local=true";
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool is_public () {
|
protected override bool is_public () {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Soup.Message? get_stream () {
|
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);
|
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);
|
return new Soup.Message("GET", url);
|
||||||
|
|
Loading…
Reference in New Issue