Mercurial > pidgin.yaz
changeset 2208:9b3262a2f7c4
[gaim-migrate @ 2218]
hi
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 03 Sep 2001 20:30:02 +0000 |
parents | f5b8ddcfbded |
children | 9b8b32ae3b41 |
files | src/buddy_chat.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy_chat.c Mon Sep 03 07:16:05 2001 +0000 +++ b/src/buddy_chat.c Mon Sep 03 20:30:02 2001 +0000 @@ -530,7 +530,8 @@ static void chat_press_info(GtkObject *obj, struct conversation *b) { - (*b->gc->prpl->get_info)(b->gc, gtk_object_get_user_data(obj)); + if (b->gc) + (*b->gc->prpl->get_info)(b->gc, gtk_object_get_user_data(obj)); } static gint right_click_chat(GtkObject *obj, GdkEventButton *event, struct conversation *b) @@ -553,7 +554,7 @@ gtk_menu_append(GTK_MENU(menu), button); gtk_widget_show(button); - if (b->gc->prpl->get_info) { + if (b->gc && b->gc->prpl->get_info) { button = gtk_menu_item_new_with_label(_("Info")); gtk_signal_connect(GTK_OBJECT(button), "activate", GTK_SIGNAL_FUNC(chat_press_info), b);