Mercurial > pidgin
changeset 11309:2934ab3a6c89
[gaim-migrate @ 13509]
Grey out the clear formatting button if the imhtml doesn't support any formatting.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 19 Aug 2005 05:26:16 +0000 |
parents | 5ede3f6d6bd7 |
children | 0058b0737e76 |
files | src/gtkimhtmltoolbar.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtmltoolbar.c Fri Aug 19 05:09:54 2005 +0000 +++ b/src/gtkimhtmltoolbar.c Fri Aug 19 05:26:16 2005 +0000 @@ -752,6 +752,16 @@ gtk_widget_set_sensitive(GTK_WIDGET(toolbar->fgcolor), buttons & GTK_IMHTML_FORECOLOR); gtk_widget_set_sensitive(GTK_WIDGET(toolbar->bgcolor), buttons & GTK_IMHTML_BACKCOLOR); + gtk_widget_set_sensitive(GTK_WIDGET(toolbar->clear), + (buttons & GTK_IMHTML_BOLD || + buttons & GTK_IMHTML_ITALIC || + buttons & GTK_IMHTML_UNDERLINE || + buttons & GTK_IMHTML_GROW || + buttons & GTK_IMHTML_SHRINK || + buttons & GTK_IMHTML_FACE || + buttons & GTK_IMHTML_FORECOLOR || + buttons & GTK_IMHTML_BACKCOLOR)); + gtk_widget_set_sensitive(GTK_WIDGET(toolbar->image), buttons & GTK_IMHTML_IMAGE); gtk_widget_set_sensitive(GTK_WIDGET(toolbar->link), buttons & GTK_IMHTML_LINK); gtk_widget_set_sensitive(GTK_WIDGET(toolbar->smiley), buttons & GTK_IMHTML_SMILEY);