Add signal for media-changed, and test on mediaview

svn: r13949
This commit is contained in:
Doug Blank 2009-12-31 17:03:04 +00:00
parent 2adcdb6ae3
commit 6cdb8a9406
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class DbState(Callback):
__signals__ = {
'database-changed' : (DbBsddbRead, ),
'active-changed' : (str, ),
'media-changed' : (str, ),
'no-database' : None,
}

View File

@ -332,6 +332,7 @@ class MediaView(ListView):
pix = ThumbNails.get_thumbnail_image(
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):
"""