Commit 8feda1c0 authored by Giovanni Campagna's avatar Giovanni Campagna Committed by Florian Müllner

places-menu: add Recent and Trash

For completeness, compared with Nautilus.

Fixes #2
parent 724249dd
......@@ -298,6 +298,9 @@ var PlacesManager = new Lang.Class({
let homePath = GLib.get_home_dir();
this._places.special.push(new PlaceInfo('special',
Gio.File.new_for_uri('recent:///'),
_("Recent")));
this._places.special.push(new PlaceInfo('special',
Gio.File.new_for_path(homePath),
_("Home")));
......@@ -328,6 +331,10 @@ var PlacesManager = new Lang.Class({
});
this._places.special = this._places.special.concat(specials);
this._places.special.push(new PlaceInfo('special',
Gio.File.new_for_uri('trash:///'),
_("Trash")));
this.emit('special-updated');
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment