gnome-shell r85 - trunk/js/ui
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-shell r85 - trunk/js/ui
- Date: Tue, 25 Nov 2008 23:50:00 +0000 (UTC)
Author: walters
Date: Tue Nov 25 23:50:00 2008
New Revision: 85
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=85&view=rev
Log:
Search executables as well
We want "gedit" to find GEdit, which doesn't contain its name in either
the name or description.
Modified:
trunk/js/ui/appdisplay.js
Modified: trunk/js/ui/appdisplay.js
==============================================================================
--- trunk/js/ui/appdisplay.js (original)
+++ trunk/js/ui/appdisplay.js Tue Nov 25 23:50:00 2008
@@ -203,12 +203,17 @@
if (search == null || search == '')
return true;
let name = appinfo.get_name().toLowerCase();
- let description = appinfo.get_description();
- if (description) description = description.toLowerCase();
if (name.indexOf(search) >= 0)
return true;
- if (description && description.indexOf(search) >= 0)
- return true;
+ let description = appinfo.get_description();
+ if (description) {
+ description = description.toLowerCase();
+ if (description.indexOf(search) >= 0)
+ return true;
+ }
+ let exec = appinfo.get_executable().toLowerCase();
+ if (exec.indexOf(search) >= 0)
+ return true;
return false;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]