pidgin: 81070314: Fix compiling with glib < 2.6

nosnilmot at pidgin.im nosnilmot at pidgin.im
Sat Aug 16 13:30:50 EDT 2008


-----------------------------------------------------------------
Revision: 81070314dbb1793818b946813e1f0cdfda74f7ca
Ancestor: 11239f50c6ca015f7379303dccb7d1094c7fafb1
Author: nosnilmot at pidgin.im
Date: 2008-08-16T17:25:33
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/81070314dbb1793818b946813e1f0cdfda74f7ca

Modified files:
        finch/gntconv.c

ChangeLog: 

Fix compiling with glib < 2.6

-------------- next part --------------
============================================================
--- finch/gntconv.c	b98c9a4a2de42e9591493a7286ccfc2106f92140
+++ finch/gntconv.c	8b1309c31119b2a9a9e58a9382b64a9d55d184ac
@@ -1289,6 +1289,7 @@ cmd_show_window(PurpleConversation *conv
 	return PURPLE_CMD_STATUS_OK;
 }
 
+#if GLIB_CHECK_VERSION(2,6,0)
 static PurpleCmdRet
 cmd_message_color(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
 {
@@ -1329,6 +1330,7 @@ cmd_message_color(PurpleConversation *co
 
 	return PURPLE_CMD_STATUS_OK;
 }
+#endif
 
 static PurpleCmdRet
 users_command_cb(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
@@ -1414,6 +1416,7 @@ void finch_conversation_init()
 	                  PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL,
 	                  cmd_show_window, _("statuses: Show the savedstatuses window."), finch_savedstatus_show_all);
 
+#if GLIB_CHECK_VERSION(2,6,0)
 	/* Allow customizing the message colors using a command during run-time */
 	purple_cmd_register("msgcolor", "www", PURPLE_CMD_P_DEFAULT,
 			PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL,
@@ -1423,6 +1426,7 @@ void finch_conversation_init()
 				                 "    &lt;foreground/background&gt;: black, red, green, blue, white, gray, darkgray, magenta, cyan, default<br><br>"
 								 "EXAMPLE:<br>    msgcolor send cyan default"),
 			NULL);
+#endif
 
 	purple_signal_connect(purple_conversations_get_handle(), "buddy-typing", finch_conv_get_handle(),
 					PURPLE_CALLBACK(update_buddy_typing), NULL);


More information about the Commits mailing list