Mercurial > pidgin
diff src/gtkconv.c @ 9470:0e11618b37d7
[gaim-migrate @ 10295]
Eric Blade fixed a comment that was backwards, and add two comments,
which were also backwards but I fixed them. He tried to make the
"Insert Link" menu item insensitive in a dead convo, but I undid that
because it didn't match the toolbar.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Wed, 07 Jul 2004 05:02:41 +0000 |
parents | 4d0b0d5485e6 |
children | 37f7100e58e6 |
line wrap: on
line diff
--- a/src/gtkconv.c Wed Jul 07 03:28:00 2004 +0000 +++ b/src/gtkconv.c Wed Jul 07 05:02:41 2004 +0000 @@ -2623,7 +2623,7 @@ gtk_widget_show(gtkwin->menu.insert_link); gtk_widget_show(gtkwin->menu.insert_image); } else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { - /* Show stuff that applies to IMs, hide stuff that applies to chats */ + /* Show stuff that applies to Chats, hide stuff that applies to IMs */ /* Deal with buttons */ gtk_widget_show(gtkconv->info); @@ -2642,11 +2642,13 @@ if (gaim_blist_find_chat(gaim_conversation_get_account(conv), gaim_conversation_get_name(conv)) == NULL) { + /* If the chat is NOT in the buddy list */ gtk_widget_show(gtkwin->menu.add); gtk_widget_hide(gtkwin->menu.remove); gtk_widget_show(gtkconv->add); gtk_widget_hide(gtkconv->remove); } else { + /* If the chat IS in the buddy list */ gtk_widget_show(gtkwin->menu.remove); gtk_widget_hide(gtkwin->menu.add); gtk_widget_hide(gtkconv->add); @@ -2722,7 +2724,7 @@ if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { gtk_widget_set_sensitive(gtkwin->menu.send_file, - (gc && prpl_info->send_file != NULL + (gc && prpl_info->send_file != NULL && (!prpl_info->can_receive_file || prpl_info->can_receive_file(gc, gaim_conversation_get_name(conv))))); if (gaim_find_buddy(gaim_conversation_get_account(conv),