Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 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 |
comparison
equal
deleted
inserted
replaced
4363:65d98b565fbe | 4364:fa56829b9587 |
---|---|
1725 gtkwin = GAIM_GTK_WINDOW(win); | 1725 gtkwin = GAIM_GTK_WINDOW(win); |
1726 gtkconv = GAIM_GTK_CONVERSATION(conv); | 1726 gtkconv = GAIM_GTK_CONVERSATION(conv); |
1727 | 1727 |
1728 gaim_conversation_set_unseen(conv, GAIM_UNSEEN_NONE); | 1728 gaim_conversation_set_unseen(conv, GAIM_UNSEEN_NONE); |
1729 | 1729 |
1730 if (gc != NULL) { | |
1731 gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE); | |
1732 } | |
1733 | |
1730 /* Update the menubar */ | 1734 /* Update the menubar */ |
1731 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 1735 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
1732 gtk_widget_set_sensitive(gtkwin->menu.view_history, TRUE); | 1736 gtk_widget_set_sensitive(gtkwin->menu.view_history, TRUE); |
1733 gtk_widget_set_sensitive(gtkwin->menu.insert_image, | 1737 gtk_widget_set_sensitive(gtkwin->menu.insert_image, |
1734 (gc && gc->prpl->options & OPT_PROTO_IM_IMAGE)); | 1738 (gc && gc->prpl->options & OPT_PROTO_IM_IMAGE)); |
1960 if (conv == NULL) | 1964 if (conv == NULL) |
1961 return; | 1965 return; |
1962 | 1966 |
1963 user = gaim_conversation_get_user(conv); | 1967 user = gaim_conversation_get_user(conv); |
1964 gtkwin = GAIM_GTK_WINDOW(win); | 1968 gtkwin = GAIM_GTK_WINDOW(win); |
1969 | |
1970 if (gtkwin->menu.send_as == NULL) | |
1971 return; | |
1965 | 1972 |
1966 username = (user->gc == NULL ? user->username : user->gc->username); | 1973 username = (user->gc == NULL ? user->username : user->gc->username); |
1967 | 1974 |
1968 gtk_widget_show(gtkwin->menu.send_as); | 1975 gtk_widget_show(gtkwin->menu.send_as); |
1969 | 1976 |
4695 | 4702 |
4696 if (gaim_window_get_active_conversation(win) == conv) { | 4703 if (gaim_window_get_active_conversation(win) == conv) { |
4697 gtk_widget_set_sensitive(gtkwin->menu.insert_link, FALSE); | 4704 gtk_widget_set_sensitive(gtkwin->menu.insert_link, FALSE); |
4698 } | 4705 } |
4699 } | 4706 } |
4707 else { | |
4708 gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE); | |
4709 } | |
4700 | 4710 |
4701 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 4711 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
4702 if (gc == NULL) { | 4712 if (gc == NULL) { |
4703 gtk_widget_set_sensitive(gtkconv->info, FALSE); | 4713 gtk_widget_set_sensitive(gtkconv->info, FALSE); |
4704 gtk_widget_set_sensitive(gtkconv->u.im->warn, FALSE); | 4714 gtk_widget_set_sensitive(gtkconv->u.im->warn, FALSE); |