When modifying multiple files make it possibility to ADD Comments, rather than to replace
I am missing a feature to add comments to photos. I am not a Vala developer, but in my local environment I was able to "FIX" this with this ugly workaround:
in File Commands.vala
public class EditMultipleCommentsCommand : MultipleDataSourceAtOnceCommand {
...
public override void execute_on_all(Gee.Collection<DataSource> sources) {
foreach (DataSource source in sources) {
MediaSource m = (MediaSource) source;
if (new_comment == "") {
m.set_comment(new_comment);
} else {
m.set_comment(new_comment + " " + m.get_comment());
}
}
}
...
}
and in File MediaPage.vala
protected virtual void on_edit_comment() {
...
EditCommentDialog edit_comment_dialog = new EditCommentDialog("");
...
}
But it would be great to have a separate Menu Entry which is ADD Comment rather than MODIFY Comment. If someone would give me a short introduction where to put in the functionality I will do it on my own.
EG. by default comments will be deleted. If you type in a comment, it will be prepended to existing comment
Edited by Jens Georg