| 1591 |
1591 |
| 1592 void gtk_imhtmltoolbar_switch_active_conversation(GtkIMHtmlToolbar *toolbar, |
1592 void gtk_imhtmltoolbar_switch_active_conversation(GtkIMHtmlToolbar *toolbar, |
| 1593 PurpleConversation *conv) |
1593 PurpleConversation *conv) |
| 1594 { |
1594 { |
| 1595 PurpleConnection *gc = purple_conversation_get_connection(conv); |
1595 PurpleConnection *gc = purple_conversation_get_connection(conv); |
| 1596 PurplePlugin *prpl = purple_connection_get_protocol_info(gc); |
1596 PurplePluginProtocolInfo *prpl_info = purple_connection_get_protocol_info(gc); |
| 1597 |
1597 |
| 1598 g_object_set_data(G_OBJECT(toolbar), "active_conv", conv); |
1598 g_object_set_data(G_OBJECT(toolbar), "active_conv", conv); |
| 1599 |
1599 |
| 1600 /* gray out attention button on protocols that don't support it |
1600 /* gray out attention button on protocols that don't support it |
| 1601 for the time being it is always disabled for chats */ |
1601 for the time being it is always disabled for chats */ |
| 1602 gtk_widget_set_sensitive(toolbar->attention, |
1602 gtk_widget_set_sensitive(toolbar->attention, |
| 1603 conv && prpl && PURPLE_IS_IM_CONVERSATION(conv) && |
1603 conv && prpl_info && PURPLE_IS_IM_CONVERSATION(conv) && |
| 1604 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); |
1604 prpl_info->send_attention != NULL); |
| 1605 } |
1605 } |
| 1606 |
1606 |