changeset 7888:d12b234959d5

[gaim-migrate @ 8546] Make sure the bgcolor button gets grayed out for protocols that aren't as good as oscar committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 16 Dec 2003 05:41:30 +0000
parents 4b43a3f9de73
children 7e1bb4deca24
files src/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Tue Dec 16 05:29:37 2003 +0000
+++ b/src/gtkconv.c	Tue Dec 16 05:41:30 2003 +0000
@@ -2181,6 +2181,8 @@
 		/* Deal with the toolbar */
 		gtk_widget_set_sensitive(gtkconv->toolbar.image,
 								 (prpl_info->options & OPT_PROTO_IM_IMAGE));
+		gtk_widget_set_sensitive(gtkconv->toolbar.bgcolor,
+								 !(gc->flags & GAIM_CONNECTION_NO_BGCOLOR));
 
 		/* Deal with menu items */
 		gtk_widget_set_sensitive(gtkwin->menu.view_log, TRUE);