From 2a098de9bf27260c121792754a66ab10f0bddf43 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 22 Mar 2016 10:08:28 +0000 Subject: [PATCH] Add differs() method to Matrix.ImageIngo Signed-off-by: Gergely Polonkai --- src/matrix-types.vala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/matrix-types.vala b/src/matrix-types.vala index 4f80e33..aced833 100644 --- a/src/matrix-types.vala +++ b/src/matrix-types.vala @@ -795,6 +795,21 @@ namespace Matrix { return node; } + + /** + * Check if two ImageInfo objects are identical. + * + * @param other the ImageInfo object to compare with + * @return true if the two objects hold different values + */ + public bool + differs(ImageInfo other) + { + return ((size != other.size) + || (height != other.height) + || (width != other.width) + || (mimetype != other.mimetype)); + } } public struct AudioInfo {