| 1609 gtk_webviewtoolbar_switch_active_conversation(GtkWebViewToolbar *toolbar, |
1609 gtk_webviewtoolbar_switch_active_conversation(GtkWebViewToolbar *toolbar, |
| 1610 PurpleConversation *conv) |
1610 PurpleConversation *conv) |
| 1611 { |
1611 { |
| 1612 GtkWebViewToolbarPriv *priv = GTK_WEBVIEWTOOLBAR_GET_PRIVATE(toolbar); |
1612 GtkWebViewToolbarPriv *priv = GTK_WEBVIEWTOOLBAR_GET_PRIVATE(toolbar); |
| 1613 PurpleConnection *gc = purple_conversation_get_connection(conv); |
1613 PurpleConnection *gc = purple_conversation_get_connection(conv); |
| 1614 PurplePlugin *prpl = purple_connection_get_protocol_info(gc); |
1614 PurplePluginProtocolInfo *prpl_info = purple_connection_get_protocol_info(gc); |
| 1615 |
1615 |
| 1616 priv->active_conv = conv; |
1616 priv->active_conv = conv; |
| 1617 |
1617 |
| 1618 /* gray out attention button on protocols that don't support it |
1618 /* gray out attention button on protocols that don't support it |
| 1619 for the time being it is always disabled for chats */ |
1619 for the time being it is always disabled for chats */ |
| 1620 gtk_action_set_sensitive(priv->attention, |
1620 gtk_action_set_sensitive(priv->attention, |
| 1621 conv && prpl && PURPLE_IS_IM_CONVERSATION(conv) && |
1621 conv && prpl_info && PURPLE_IS_IM_CONVERSATION(conv) && |
| 1622 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL); |
1622 prpl_info->send_attention != NULL); |
| 1623 } |
1623 } |
| 1624 |
1624 |
| 1625 void |
1625 void |
| 1626 gtk_webviewtoolbar_activate(GtkWebViewToolbar *toolbar, |
1626 gtk_webviewtoolbar_activate(GtkWebViewToolbar *toolbar, |
| 1627 GtkWebViewToolbarAction action) |
1627 GtkWebViewToolbarAction action) |