# HG changeset patch # User Marcus Lundblad # Date 1228613792 0 # Node ID 146a6c0b2ee88faade45f242c55d6ed5b330cd78 # Parent 558baf33197efdb4f1f87b89c940608e9d8a66c3 Gray out attention toolbar button when creating the toolbar. This way it's inactive for toolbars that are not connected to a conversation, like the one in the formatting prefs and in the buddy notes plugin. Prevents crashing when clicking the button on such toolbars. diff -r 558baf33197e -r 146a6c0b2ee8 pidgin/gtkimhtmltoolbar.c --- a/pidgin/gtkimhtmltoolbar.c Mon Nov 24 22:13:44 2008 +0000 +++ b/pidgin/gtkimhtmltoolbar.c Sun Dec 07 01:36:32 2008 +0000 @@ -1477,6 +1477,8 @@ g_signal_connect(G_OBJECT(toolbar->attention), "notify::sensitive", G_CALLBACK(button_sensitiveness_changed), attention_button); + /* set attention button to be greyed out until we get a conversation */ + gtk_widget_set_sensitive(toolbar->attention, FALSE); gtk_box_pack_start(GTK_BOX(hbox), box, FALSE, FALSE, 0); g_object_set_data(G_OBJECT(hbox), "lean-view", box);