[gnome-shell] app-display: Always select "All" filter on switch
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] app-display: Always select "All" filter on switch
- Date: Thu, 10 Feb 2011 10:24:11 +0000 (UTC)
commit d90c98130e1dd5afaf3c94cc7b2526cf4895e696
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 9 23:39:28 2011 +0100
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
js/ui/appDisplay.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 97dcd0f..ad3da75 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -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 = [];
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]