aboutsummaryrefslogtreecommitdiff
path: root/src/procmsg.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-08 08:36:21 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-07-08 08:36:21 +0000
commitf61df3781b52ec6551a962ad62816f9c3cb6e951 (patch)
treedb0893c1a94c72feaa32b970e9893459a0b44d53 /src/procmsg.c
parenta07b24d01ccce1cfa58e74782f8b5b05c5a7055d (diff)
put existing window in front when trying to reedit draft/queued messages which are already open.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@409 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/procmsg.c')
-rw-r--r--src/procmsg.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/procmsg.c b/src/procmsg.c
index 714788da..d3be3765 100644
--- a/src/procmsg.c
+++ b/src/procmsg.c
@@ -1465,6 +1465,23 @@ MsgInfo *procmsg_msginfo_get_full_info(MsgInfo *msginfo)
return full_msginfo;
}
+gboolean procmsg_msginfo_equal(MsgInfo *msginfo_a, MsgInfo *msginfo_b)
+{
+ if (!msginfo_a || !msginfo_b)
+ return FALSE;
+
+ if (msginfo_a == msginfo_b)
+ return TRUE;
+
+ if (msginfo_a->folder == msginfo_b->folder &&
+ msginfo_a->msgnum == msginfo_b->msgnum &&
+ msginfo_a->size == msginfo_b->size &&
+ msginfo_a->mtime == msginfo_b->mtime)
+ return TRUE;
+
+ return FALSE;
+}
+
void procmsg_msginfo_free(MsgInfo *msginfo)
{
if (msginfo == NULL) return;