wm_tweaks with generic get_attrs()

Another use for the generic get_attrs()!  This is making things much
easier...
This commit is contained in:
Bryan Schumaker 2010-12-07 08:13:29 -05:00
parent b9eb5609fc
commit 9f7e838ec2

View File

@ -4,8 +4,7 @@ import ocarina
from ocarina import window
gdk = ocarina.gdk
libsaria = ocarina.libsaria
file_id = libsaria.path.file_id
get_attrs = libsaria.sources.library.get_attrs
get_attrs = libsaria.sources.get_attrs
invite = libsaria.event.invite
@ -18,8 +17,7 @@ def tweak_icon(file):
def tweak_title(filepath):
if filepath != None:
id = file_id(filepath)
title = get_attrs(id, "title")
title = get_attrs("title")
else:
title = ocarina.__vers__
window.set_title(title)