Mercurial > pidgin
changeset 29263: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 | 558baf33197e |
children | a0fd6a41d127 |
files | pidgin/gtkimhtmltoolbar.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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);