[kupfer] favorites: Lower rank for Add/Remove actions yet more.



commit c8523a11ba6cbed59dd91f8e34e622bea1a3f6dc
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Jan 7 17:54:24 2010 +0100

    favorites: Lower rank for Add/Remove actions yet more.

 kupfer/plugin/favorites.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/favorites.py b/kupfer/plugin/favorites.py
index 0901f8a..4a8246f 100644
--- a/kupfer/plugin/favorites.py
+++ b/kupfer/plugin/favorites.py
@@ -132,7 +132,8 @@ class FavoritesSource (Source, PicklingHelperMixin):
 		return list(_FavoritesLeafTypes())
 
 class AddFavorite (Action):
-	rank_adjust = -5
+	# Rank down, since it applies everywhere
+	rank_adjust = -15
 	def __init__(self):
 		Action.__init__(self, _("Add to Favorites"))
 	def activate(self, leaf):
@@ -147,7 +148,7 @@ class AddFavorite (Action):
 		return "gtk-add"
 
 class RemoveFavorite (Action):
-	rank_adjust = -5
+	rank_adjust = -15
 	def __init__(self):
 		Action.__init__(self, _("Remove from Favorites"))
 	def activate(self, leaf):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]