# HG changeset patch # User Christian Hammond # Date 1043084240 0 # Node ID fa56829b95876d79ee5f2f057a25db724c46dd82 # Parent 65d98b565fbe77f54dff7b6f1e416ba52aebbce6 [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 diff -r 65d98b565fbe -r fa56829b9587 src/gtkconv.c --- 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) {