public void AddTagExtended (int[] nums, Tag[] tags)
{
foreach (int num in nums)
(query [num] as Photo).AddTag (tags);
query.Commit (nums);
foreach (Tag t in tags) {
if (t.Icon != null || t.IconWasCleared)
continue;
// FIXME this needs a lot more work.
Pixbuf icon = null;
try {
Pixbuf tmp = PhotoLoader.LoadAtMaxSize (query [nums [0]], 128, 128);
icon = PixbufUtils.TagIconFromPixbuf (tmp);
tmp.Dispose ();
} catch {
icon = null;
}
t.Icon = icon;
Database.Tags.Commit (t);
}
}