changeset 4364:fa56829b9587

[gaim-migrate @ 4630] A couple fixes for a glitch (which I'll fix fully later) and a segfault on opening new windows. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 20 Jan 2003 17:37:20 +0000
parents 65d98b565fbe
children 6e96ced6fb78
files src/gtkconv.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Jan 20 16:57:09 2003 +0000
+++ b/src/gtkconv.c	Mon Jan 20 17:37:20 2003 +0000
@@ -1727,6 +1727,10 @@
 
 	gaim_conversation_set_unseen(conv, GAIM_UNSEEN_NONE);
 
+	if (gc != NULL) {
+		gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE);
+	}
+
 	/* Update the menubar */
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {
 		gtk_widget_set_sensitive(gtkwin->menu.view_history, TRUE);
@@ -1963,6 +1967,9 @@
 	user   = gaim_conversation_get_user(conv);
 	gtkwin = GAIM_GTK_WINDOW(win);
 
+	if (gtkwin->menu.send_as == NULL)
+		return;
+
 	username = (user->gc == NULL ? user->username : user->gc->username);
 
 	gtk_widget_show(gtkwin->menu.send_as);
@@ -4697,6 +4704,9 @@
 			gtk_widget_set_sensitive(gtkwin->menu.insert_link, FALSE);
 		}
 	}
+	else {
+		gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE);
+	}
 
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {
 		if (gc == NULL) {