def on_recent_menu_changed(self, manager, liststore):
     liststore.clear()
     for uri in recent_menu.get_uris():
         liststore.append((
             uri,
             basename(unquote(uri)),
         ))
     self.recent_combo.set_active(0)
 def on_recent_menu_changed(self, manager, liststore):
     liststore.clear()
     # Just to make sphinx happy...
     try:
         for uri in recent_menu.get_uris():
             liststore.append((uri, basename(unquote(uri)), ))
     except TypeError:
         pass
     self.recent_combo.set_active(0)
Exemple #3
0
 def on_recent_menu_changed(self, manager, liststore):
     liststore.clear()
     # Just to make sphinx happy...
     try:
         for uri in recent_menu.get_uris():
             liststore.append((uri, basename(unquote(uri))))
     except TypeError:
         pass
     self.recent_combo.set_active(0)