* src/FilterEditor/_EditRule.py: Change Media to MediaObject;

(__init__): Work with empty filter names (new filter).


svn: r7238
This commit is contained in:
Alex Roitman 2006-08-22 18:00:31 +00:00
parent ead038c2a1
commit 4990fd36ee
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@
* src/DisplayState.py (DisplayState.__signals__): Register * src/DisplayState.py (DisplayState.__signals__): Register
'filters-changed' signal. 'filters-changed' signal.
* src/FilterEditor/_ShowResults.py: Change Media to MediaObject. * src/FilterEditor/_ShowResults.py: Change Media to MediaObject.
* src/FilterEditor/_EditRule.py: Change Media to MediaObject. * src/FilterEditor/_EditRule.py: Change Media to MediaObject;
(__init__): Work with empty filter names (new filter).
* src/FilterEditor/_FilterEditor.py (close): Emit 'filters-changed'. * src/FilterEditor/_FilterEditor.py (close): Emit 'filters-changed'.
* src/Filters/SideBar/*py: Take uistate and connect to the * src/Filters/SideBar/*py: Take uistate and connect to the
'filters-changed' signal. 'filters-changed' signal.

View File

@ -149,7 +149,7 @@ class MyFilters(gtk.ComboBox):
self.flist.sort() self.flist.sort()
for fname in self.flist: for fname in self.flist:
if filter_name.strip() and (fname != filter_name): if fname != filter_name:
store.append(row=[fname]) store.append(row=[fname])
self.set_active(0) self.set_active(0)
self.show() self.show()