| 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); |