comparison pidgin/gtkimhtmltoolbar.c @ 29645:602f3b6ddbbf

Removed _ALLOW_ATTENTION from connection flags Look at the existence of prpl->send_attention to gray out attention button
author Marcus Lundblad <ml@update.uu.se>
date Wed, 29 Oct 2008 20:17:21 +0000
parents 0efd688ed086
children 9e07b1c14075
comparison
equal deleted inserted replaced
29644:0efd688ed086 29645:602f3b6ddbbf
1560 1560
1561 void gtk_imhtmltoolbar_switch_active_conversation(GtkIMHtmlToolbar *toolbar, 1561 void gtk_imhtmltoolbar_switch_active_conversation(GtkIMHtmlToolbar *toolbar,
1562 PurpleConversation *conv) 1562 PurpleConversation *conv)
1563 { 1563 {
1564 PurpleConnection *gc = purple_conversation_get_gc(conv); 1564 PurpleConnection *gc = purple_conversation_get_gc(conv);
1565 PurplePlugin *prpl = purple_connection_get_prpl(gc);
1566
1565 purple_debug_info("gtkimhtmltoolbar", "switch active conversation to %p\n", 1567 purple_debug_info("gtkimhtmltoolbar", "switch active conversation to %p\n",
1566 conv); 1568 conv);
1567 toolbar->active_conv = conv; 1569 toolbar->active_conv = conv;
1568 1570
1569 gtk_widget_set_sensitive(toolbar->attention, 1571 /* gray out attention button on protocols that don't support it
1570 gc->flags & PURPLE_CONNECTION_ALLOW_ATTENTION); 1572 for the time being it is always disabled for chats */
1571 } 1573 gtk_widget_set_sensitive(toolbar->attention,
1572 1574 purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM &&
1575 PURPLE_PLUGIN_PROTOCOL_INFO(prpl)->send_attention != NULL);
1576 }
1577