[gnome-shell] Show bookmarks with spaces in the name correctly
- From: Siegfried-Angel Gevatter Pujals <sgevatter src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Show bookmarks with spaces in the name correctly
- Date: Sun, 9 Aug 2009 17:22:43 +0000 (UTC)
commit 1f864fba7fdd1453bf1d91b45e8660d84736ee25
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date: Sun Aug 9 19:19:07 2009 +0200
Show bookmarks with spaces in the name correctly
Take everything in the ~/.gtk-bookmark lines after the URI
as label, not only the first word. (eg. if there's a line like
"file:///home/rainct/Ubuntu%20One Ubuntu One", now "Ubuntu One"
is taken as the label, instead of only "Ubuntu").
js/ui/places.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/places.js b/js/ui/places.js
index d9bdf68..0c64e90 100644
--- a/js/ui/places.js
+++ b/js/ui/places.js
@@ -131,7 +131,7 @@ Places.prototype = {
continue;
let label = null;
if (components.length > 1)
- label = components[1];
+ label = components.slice(1).join(' ');
bookmarksToLabel[bookmark] = label;
bookmarksOrder.push(bookmark);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]