app-display: Always select "All" filter on switch

When switching to the app view, it is unlikely that a user is
going to select an application from the same filter list as the
last time the view was used, so reset the view to the "All" filter
on switch.

https://bugzilla.gnome.org/show_bug.cgi?id=641987
This commit is contained in:
Florian Müllner 2011-02-09 23:39:28 +01:00
parent af3883905b
commit d90c98130e

View File

@ -112,6 +112,13 @@ ViewByCategories.prototype = {
this.actor.add(this._view.actor, { expand: true, x_fill: true, y_fill: true });
this.actor.add(this._filters, { expand: false, y_fill: false, y_align: St.Align.START });
// Always select the "All" filter when switching to the app view
this.actor.connect('notify::mapped', Lang.bind(this,
function() {
if (this.actor.mapped)
this._selectCategory(-1);
}));
this._sections = [];
},