Mercurial > pidgin.yaz
comparison finch/gntconv.c @ 29771:f94d701aa306
Remove old GLIB_CHECK_VERSION calls in finch. Refs #10024.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 16 Feb 2010 03:46:22 +0000 |
parents | 259bbfb423d4 |
children | a8cc50c2279f |
comparison
equal
deleted
inserted
replaced
29770:2c84c8d4a34d | 29771:f94d701aa306 |
---|---|
1316 void (*callback)(void) = data; | 1316 void (*callback)(void) = data; |
1317 callback(); | 1317 callback(); |
1318 return PURPLE_CMD_RET_OK; | 1318 return PURPLE_CMD_RET_OK; |
1319 } | 1319 } |
1320 | 1320 |
1321 #if GLIB_CHECK_VERSION(2,6,0) | |
1322 static PurpleCmdRet | 1321 static PurpleCmdRet |
1323 cmd_message_color(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data) | 1322 cmd_message_color(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data) |
1324 { | 1323 { |
1325 int *msgclass = NULL; | 1324 int *msgclass = NULL; |
1326 int fg, bg; | 1325 int fg, bg; |
1357 | 1356 |
1358 init_pair(*msgclass, fg, bg); | 1357 init_pair(*msgclass, fg, bg); |
1359 | 1358 |
1360 return PURPLE_CMD_RET_OK; | 1359 return PURPLE_CMD_RET_OK; |
1361 } | 1360 } |
1362 #endif | |
1363 | 1361 |
1364 static PurpleCmdRet | 1362 static PurpleCmdRet |
1365 users_command_cb(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data) | 1363 users_command_cb(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data) |
1366 { | 1364 { |
1367 FinchConv *fc = FINCH_GET_DATA(conv); | 1365 FinchConv *fc = FINCH_GET_DATA(conv); |
1443 cmd_show_window, _("prefs: Show the preference window."), finch_prefs_show_all); | 1441 cmd_show_window, _("prefs: Show the preference window."), finch_prefs_show_all); |
1444 purple_cmd_register("status", "", PURPLE_CMD_P_DEFAULT, | 1442 purple_cmd_register("status", "", PURPLE_CMD_P_DEFAULT, |
1445 PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, | 1443 PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, |
1446 cmd_show_window, _("statuses: Show the savedstatuses window."), finch_savedstatus_show_all); | 1444 cmd_show_window, _("statuses: Show the savedstatuses window."), finch_savedstatus_show_all); |
1447 | 1445 |
1448 #if GLIB_CHECK_VERSION(2,6,0) | |
1449 /* Allow customizing the message colors using a command during run-time */ | 1446 /* Allow customizing the message colors using a command during run-time */ |
1450 purple_cmd_register("msgcolor", "www", PURPLE_CMD_P_DEFAULT, | 1447 purple_cmd_register("msgcolor", "www", PURPLE_CMD_P_DEFAULT, |
1451 PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, | 1448 PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL, |
1452 cmd_message_color, _("msgcolor <class> <foreground> <background>: " | 1449 cmd_message_color, _("msgcolor <class> <foreground> <background>: " |
1453 "Set the color for different classes of messages in the conversation window.<br>" | 1450 "Set the color for different classes of messages in the conversation window.<br>" |
1454 " <class>: receive, send, highlight, action, timestamp<br>" | 1451 " <class>: receive, send, highlight, action, timestamp<br>" |
1455 " <foreground/background>: black, red, green, blue, white, gray, darkgray, magenta, cyan, default<br><br>" | 1452 " <foreground/background>: black, red, green, blue, white, gray, darkgray, magenta, cyan, default<br><br>" |
1456 "EXAMPLE:<br> msgcolor send cyan default"), | 1453 "EXAMPLE:<br> msgcolor send cyan default"), |
1457 NULL); | 1454 NULL); |
1458 #endif | |
1459 | 1455 |
1460 purple_signal_connect(purple_conversations_get_handle(), "buddy-typing", finch_conv_get_handle(), | 1456 purple_signal_connect(purple_conversations_get_handle(), "buddy-typing", finch_conv_get_handle(), |
1461 PURPLE_CALLBACK(update_buddy_typing), NULL); | 1457 PURPLE_CALLBACK(update_buddy_typing), NULL); |
1462 purple_signal_connect(purple_conversations_get_handle(), "buddy-typing-stopped", finch_conv_get_handle(), | 1458 purple_signal_connect(purple_conversations_get_handle(), "buddy-typing-stopped", finch_conv_get_handle(), |
1463 PURPLE_CALLBACK(update_buddy_typing), NULL); | 1459 PURPLE_CALLBACK(update_buddy_typing), NULL); |