diff pidgin/gtkimhtmltoolbar.c @ 29657:146a6c0b2ee8

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.
author Marcus Lundblad <ml@update.uu.se>
date Sun, 07 Dec 2008 01:36:32 +0000
parents 9c928fb69ace
children b98519a42e53
line wrap: on
line diff
--- 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);