/soc/2015/koosha/main: 33a3d9070214: Make flags definitions back...

Koosha Khajehmoogahi koosha at posteo.de
Fri Jul 10 11:51:31 EDT 2015


Changeset: 33a3d9070214894e58d0a1b4aac86c3ad5ba0222
Author:	 Koosha Khajehmoogahi <koosha at posteo.de>
Date:	 2015-07-10 17:48 +0200
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/koosha/main/rev/33a3d9070214

Description:

Make flags definitions backward-compatible with the old code

diffstat:

 libpurple/conversation.h |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (27 lines):

diff --git a/libpurple/conversation.h b/libpurple/conversation.h
--- a/libpurple/conversation.h
+++ b/libpurple/conversation.h
@@ -129,14 +129,15 @@ typedef enum /*< flags >*/
 	PURPLE_MESSAGE_ACTIVE_ONLY  = 1 << 4,
 	PURPLE_MESSAGE_NICK         = 1 << 5,
 	PURPLE_MESSAGE_NO_LOG       = 1 << 6,
-	PURPLE_MESSAGE_ERROR        = 1 << 7,
-	PURPLE_MESSAGE_DELAYED      = 1 << 8,
-	PURPLE_MESSAGE_RAW          = 1 << 9,
-	PURPLE_MESSAGE_IMAGES       = 1 << 10,
-	PURPLE_MESSAGE_NOTIFY       = 1 << 11,
-	PURPLE_MESSAGE_NO_LINKIFY   = 1 << 12,
-	PURPLE_MESSAGE_INVISIBLE    = 1 << 13,
-	PURPLE_MESSAGE_REPLACE_LAST = 1 << 14,
+	PURPLE_MESSAGE_REPLACE_LAST = 1 << 7,
+	/* The gap here is for backward compatibility with the old code */
+	PURPLE_MESSAGE_ERROR        = 1 << 9,
+	PURPLE_MESSAGE_DELAYED      = 1 << 10,
+	PURPLE_MESSAGE_RAW          = 1 << 11,
+	PURPLE_MESSAGE_IMAGES       = 1 << 12,
+	PURPLE_MESSAGE_NOTIFY       = 1 << 13,
+	PURPLE_MESSAGE_NO_LINKIFY   = 1 << 14,
+	PURPLE_MESSAGE_INVISIBLE    = 1 << 15,
 } PurpleMessageFlags;
 
 #include <glib.h>



More information about the Commits mailing list