# HG changeset patch # User Christian Hammond # Date 1056087649 0 # Node ID b85e88d3fa5f43e64815390ec77e6947b2bc5f2e # Parent 395c7f769e057e7f995eec375c595851719ab45a [gaim-migrate @ 6369] Bah, thought I committed this, but I guess SourceForge disconnected on me. Anyhow, this greys out the Insert Image button on the toolbar on conversation windows when the protocol doesn't support them or when in a chat. committer: Tailor Script diff -r 395c7f769e05 -r b85e88d3fa5f src/gtkconv.c --- a/src/gtkconv.c Fri Jun 20 04:46:33 2003 +0000 +++ b/src/gtkconv.c Fri Jun 20 05:40:49 2003 +0000 @@ -1861,10 +1861,15 @@ if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { gtk_widget_show(gtkwin->menu.view_log); - if (gc && prpl_info->options & OPT_PROTO_IM_IMAGE) + if (gc && prpl_info->options & OPT_PROTO_IM_IMAGE) { gtk_widget_show(gtkwin->menu.insert_image); - else + gtk_widget_set_sensitive(gtkconv->toolbar.image, TRUE); + + } + else { gtk_widget_hide(gtkwin->menu.insert_image); + gtk_widget_set_sensitive(gtkconv->toolbar.image, FALSE); + } gtk_widget_show(gtkwin->menu.add_pounce); gtk_widget_show(gtkwin->menu.get_info); @@ -1887,7 +1892,6 @@ gtk_widget_set_sensitive(gtkwin->menu.add, TRUE); gtk_widget_set_sensitive(gtkwin->menu.remove, TRUE); - gtk_widget_hide(gtkwin->menu.invite); if (gtkwin->menu.send_as != NULL) @@ -1898,6 +1902,7 @@ gtk_widget_hide(gtkwin->menu.view_log); gtk_widget_hide(gtkwin->menu.insert_image); + gtk_widget_set_sensitive(gtkconv->toolbar.image, FALSE); gtk_widget_set_sensitive(gtkwin->menu.alias, FALSE);