| 2454 **************************************************************************/ |
2454 **************************************************************************/ |
| 2455 |
2455 |
| 2456 static GList *get_prpl_icon_list(PurpleAccount *account) |
2456 static GList *get_prpl_icon_list(PurpleAccount *account) |
| 2457 { |
2457 { |
| 2458 GList *l = NULL; |
2458 GList *l = NULL; |
| 2459 PurplePlugin *prpl = purple_find_prpl(purple_account_get_protocol_id(account)); |
2459 PurplePlugin *prpl = purple_find_protocol_info(purple_account_get_protocol_id(account)); |
| 2460 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
2460 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| 2461 const char *prplname = prpl_info->list_icon(account, NULL); |
2461 const char *prplname = prpl_info->list_icon(account, NULL); |
| 2462 l = g_hash_table_lookup(prpl_lists, prplname); |
2462 l = g_hash_table_lookup(prpl_lists, prplname); |
| 2463 if (l) |
2463 if (l) |
| 2464 return l; |
2464 return l; |
| 3270 } |
3270 } |
| 3271 |
3271 |
| 3272 if ((chat == NULL) && (gtkconv->webview != NULL)) { |
3272 if ((chat == NULL) && (gtkconv->webview != NULL)) { |
| 3273 GHashTable *components; |
3273 GHashTable *components; |
| 3274 PurpleAccount *account = purple_conversation_get_account(conv); |
3274 PurpleAccount *account = purple_conversation_get_account(conv); |
| 3275 PurplePlugin *prpl = purple_find_prpl(purple_account_get_protocol_id(account)); |
3275 PurplePlugin *prpl = purple_find_protocol_info(purple_account_get_protocol_id(account)); |
| 3276 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
3276 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| 3277 if (purple_account_get_connection(account) != NULL && |
3277 if (purple_account_get_connection(account) != NULL && |
| 3278 PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, chat_info_defaults)) { |
3278 PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, chat_info_defaults)) { |
| 3279 components = prpl_info->chat_info_defaults(purple_account_get_connection(account), |
3279 components = prpl_info->chat_info_defaults(purple_account_get_connection(account), |
| 3280 purple_conversation_get_name(conv)); |
3280 purple_conversation_get_name(conv)); |
| 6529 if ((flags & PURPLE_MESSAGE_RECV) && |
6529 if ((flags & PURPLE_MESSAGE_RECV) && |
| 6530 !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/show_incoming_formatting")) |
6530 !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/show_incoming_formatting")) |
| 6531 gtk_font_options |= GTK_IMHTML_NO_COLOURS | GTK_IMHTML_NO_FONTS | GTK_IMHTML_NO_SIZES | GTK_IMHTML_NO_FORMATTING; |
6531 gtk_font_options |= GTK_IMHTML_NO_COLOURS | GTK_IMHTML_NO_FONTS | GTK_IMHTML_NO_SIZES | GTK_IMHTML_NO_FORMATTING; |
| 6532 |
6532 |
| 6533 /* this is gonna crash one day, I can feel it. */ |
6533 /* this is gonna crash one day, I can feel it. */ |
| 6534 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_find_prpl(purple_account_get_protocol_id(purple_conversation_get_account(conv))))->options & |
6534 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_find_protocol_info(purple_account_get_protocol_id(purple_conversation_get_account(conv))))->options & |
| 6535 OPT_PROTO_USE_POINTSIZE) { |
6535 OPT_PROTO_USE_POINTSIZE) { |
| 6536 gtk_font_options |= GTK_IMHTML_USE_POINTSIZE; |
6536 gtk_font_options |= GTK_IMHTML_USE_POINTSIZE; |
| 6537 } |
6537 } |
| 6538 |
6538 |
| 6539 if (!(flags & PURPLE_MESSAGE_RECV) && (purple_conversation_get_features(conv) & PURPLE_CONNECTION_FLAG_ALLOW_CUSTOM_SMILEY)) |
6539 if (!(flags & PURPLE_MESSAGE_RECV) && (purple_conversation_get_features(conv) & PURPLE_CONNECTION_FLAG_ALLOW_CUSTOM_SMILEY)) |