diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-09-13 04:17:37 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-09-13 15:14:57 (GMT) |
commit | 71ef2eb1411c0cb4c32ad9818001e3b2cf626ee1 (patch) | |
tree | bb8c3c91ab4757d84ff77fb66d802d5d2bdee6a9 | |
parent | 4148530413c6fc447f5a81ca595c94011d66130b (diff) |
Increment the insert offset in the activity palette menu - SL #3879
This is to consider the added separator item below the palette header
to get the styling OK.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | src/jarabe/desktop/favoritesview.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py index e44a750..125637a 100644 --- a/src/jarabe/desktop/favoritesview.py +++ b/src/jarabe/desktop/favoritesview.py @@ -511,7 +511,7 @@ class ActivityIcon(EventIcon): class FavoritePalette(ActivityPalette): __gtype_name__ = 'SugarFavoritePalette' - _PALETTE_LABEL_OFFSET = 1 + _PALETTE_LABEL_OFFSET = 2 __gsignals__ = { 'entry-activate': (GObject.SignalFlags.RUN_FIRST, @@ -553,7 +553,8 @@ class FavoritePalette(ActivityPalette): separator.show() for i in range(0, len(menu_items)): - # the first menu_item is the label so we need the offset + # the first menu_item is the label and the second is a + # separator so we need the offset self.menu.insert(menu_items[i], i + self._PALETTE_LABEL_OFFSET) def __resume_entry_cb(self, menu_item, entry): |