[gnome-characters] menu: Untabify
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] menu: Untabify
- Date: Thu, 4 Jun 2015 07:43:13 +0000 (UTC)
commit 84d017789cb9207345d8370cc25fcf31a06ae3d9
Author: Daiki Ueno <dueno src gnome org>
Date: Thu Jun 4 16:42:39 2015 +0900
menu: Untabify
src/menu.js | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/menu.js b/src/menu.js
index 02906bb..f7e5c7f 100644
--- a/src/menu.js
+++ b/src/menu.js
@@ -37,7 +37,7 @@ const MenuPopover = new Lang.Class({
let row = new Gtk.ListBoxRow({ visible: true });
row._family = 'None';
row.add(new Gtk.Label({ label: _("None"),
- visible: true,
+ visible: true,
halign: Gtk.Align.START }));
this._font_listbox.add(row);
@@ -50,7 +50,7 @@ const MenuPopover = new Lang.Class({
row = new Gtk.ListBoxRow({ visible: true });
row._family = families[index].get_name();
row.add(new Gtk.Label({ label: row._family,
- visible: true,
+ visible: true,
halign: Gtk.Align.START }));
this._font_listbox.add(row);
}
@@ -75,7 +75,7 @@ const MenuPopover = new Lang.Class({
let text = entry.get_text().replace(/^\s+|\s+$/g, '');
let keywords = text == '' ? [] : text.split(/\s+/);
this._keywords = keywords.map(String.toLowerCase);
- this._font_listbox.invalidate_filter();
+ this._font_listbox.invalidate_filter();
return true;
},
@@ -89,16 +89,16 @@ const MenuPopover = new Lang.Class({
_filterFunc: function(row) {
if (this._keywords.length == 0)
- return true;
+ return true;
if (row._family == 'None')
return true;
let nameWords = row._family.split(/\s+/).map(String.toLowerCase);
- return this._keywords.some(function(keyword, index, array) {
- return nameWords.some(function(nameWord, index, array) {
- return nameWord.indexOf(keyword) >= 0;
- });
- });
+ return this._keywords.some(function(keyword, index, array) {
+ return nameWords.some(function(nameWord, index, array) {
+ return nameWord.indexOf(keyword) >= 0;
+ });
+ });
},
_headerFunc: function(row, before) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]