Commits

phimuemue committed 86eed17

Added 'sort data' entry to popupmenu in songlist

Comments (0)

Files changed (2)

quodlibet/quodlibet/qltk/songsmenu.py

             if not song.can_add: can_add = False
             if not song.is_file: is_file = False
 
+        if True:
+            b = gtk.ImageMenuItem(stock.CUSTOM_SORT)
+            self.append(b)
+
         self.separate()
 
         if playlists:

quodlibet/quodlibet/stock.py

 PLAYLISTS = 'ql-add-to-playlist'
 DEVICES = 'ql-copy-to-device'
 RENAME = 'ql-rename'
+CUSTOM_SORT = 'ql-custom-sort'
 
 def init():
     theme = gtk.icon_theme_get_default()
         (PLAYLISTS, _("_Add to Playlist"), 0, 0, ""),
         (DEVICES, _("_Copy to Device"), 0, 0, ""),
         (RENAME, _("_Rename"), 0, 0, ""),
+        (CUSTOM_SORT, _("Sort Data"), 0, 0, ""),
         ])
 
     lookup = gtk.icon_factory_lookup_default
     factory.add(DEVICES, lookup(gtk.STOCK_COPY))
     factory.add(RENAME, lookup(gtk.STOCK_EDIT))
     factory.add(REMOVE, lookup(gtk.STOCK_REMOVE))
+    factory.add(CUSTOM_SORT, lookup(gtk.STOCK_SORT_DESCENDING))
 
     # Translators: Only translate this if it conflicts with "Delete",
     # as is the case in e.g. Finnish. It should be disambiguated as