Preparation to extend navigation to all object types

svn: r13955
This commit is contained in:
Nick Hall
2010-01-01 19:55:09 +00:00
parent 0f78f5c918
commit c43f162b2f
14 changed files with 58 additions and 21 deletions

View File

@ -47,6 +47,7 @@ import gtk
#
#-------------------------------------------------------------------------
from gui.utils import open_file_with_default_application
from gui.views.navigationview import NAVIGATION_MEDIA
from gui.views.listview import ListView
from gui.views.treemodels import MediaModel
import ThumbNails
@ -118,6 +119,9 @@ class MediaView(ListView):
config.connect("interface.filter",
self.filter_toggle)
def navigation_type(self):
return NAVIGATION_MEDIA
def column_ord_setfunc(self, clist):
self.dbstate.db.set_media_column_order(clist)
@ -333,7 +337,7 @@ class MediaView(ListView):
Utils.media_path_full(self.dbstate.db, obj.get_path()))
self.image.set_from_pixbuf(pix)
self.dbstate.emit('media-changed', (handle, ))
def ui_definition(self):
"""
Return the UIManager XML description of the menus