pidgin/gtkimhtmltoolbar.c

branch
soc.2013.gobjectification.plugins
changeset 36544
1bf8b6ef5aea
parent 36415
1c0b40253875
child 36545
23b59a16c808
equal deleted inserted replaced
36543:a8c3fecee2d3 36544:1bf8b6ef5aea
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 PurplePluginProtocolInfo *prpl_info = purple_connection_get_protocol_info(gc); 1596 PurpleProtocol *protocol = 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_info && PURPLE_IS_IM_CONVERSATION(conv) && 1603 conv && protocol && PURPLE_IS_IM_CONVERSATION(conv) &&
1604 prpl_info->send_attention != NULL); 1604 protocol->send_attention != NULL);
1605 } 1605 }
1606 1606

mercurial