cpw.attention_ui: 37530586: Gray out attention toolbar button when c...

malu at pidgin.im malu at pidgin.im
Sat Dec 6 20:40:42 EST 2008

Revision: 37530586a02ebf04f4d6002ba9e30f0ff49eb527
Ancestor: a5362cb80341e23cd708d6bc2c8b1c3661e02aba
Author: malu at pidgin.im
Date: 2008-12-07T01:36:32
Branch: im.pidgin.cpw.attention_ui
URL: http://d.pidgin.im/viewmtn/revision/info/37530586a02ebf04f4d6002ba9e30f0ff49eb527

Modified files:


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.

-------------- next part --------------
--- pidgin/gtkimhtmltoolbar.c	5da4862f6bce4b3350a3c9e01955eb4e3a46830f
+++ pidgin/gtkimhtmltoolbar.c	d4bca48b71f197afd0ec7e60fae5b6cd4e4bf3bc
@@ -1477,6 +1477,8 @@ static void gtk_imhtmltoolbar_init (GtkI
 	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);

More information about the Commits mailing list