changeset 5929:b85e88d3fa5f

[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 <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 20 Jun 2003 05:40:49 +0000
parents 395c7f769e05
children 03f1d6cd784c
files src/gtkconv.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);