[kupfer: 39/51] favorites: Use Prefs and Help as default favorites
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 39/51] favorites: Use Prefs and Help as default favorites
- Date: Mon, 28 Mar 2011 15:04:21 +0000 (UTC)
commit af18fafb6563e9813993a33af0a63a3cd40a7ed4
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Mar 28 16:51:48 2011 +0200
favorites: Use Prefs and Help as default favorites
For new users, pre-set kupfer preferences and help objects as
favorites. This gives those objects a small boost in rank, and also
makes sure the favorites are not empty when we start. Only affects new
users.
kupfer/plugin/favorites.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/favorites.py b/kupfer/plugin/favorites.py
index c40502a..439c761 100644
--- a/kupfer/plugin/favorites.py
+++ b/kupfer/plugin/favorites.py
@@ -21,7 +21,11 @@ class FavoritesSource (Source):
instance = None
def __init__(self):
Source.__init__(self, _("Favorites"))
- self.references = []
+ ## these are default favorites for new users
+ self.references = [
+ '<kupfer.plugin.core.contents.Help>',
+ '<kupfer.plugin.core.contents.Preferences>',
+ ]
def config_save(self):
references = [puid.get_unique_id(F) for F in self.favorites]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]