comparison src/gtkconv.c @ 7718:da04da151ec6

[gaim-migrate @ 8363] When dragging a buddy into a window, we want to create the new conversation in that window. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 03 Dec 2003 05:18:07 +0000
parents db3bdae1761e
children edebf99a5ec4
comparison
equal deleted inserted replaced
7717:db3bdae1761e 7718:da04da151ec6
3798 char *protocol = NULL; 3798 char *protocol = NULL;
3799 char *username = NULL; 3799 char *username = NULL;
3800 GaimAccount *account; 3800 GaimAccount *account;
3801 3801
3802 if (gaim_gtk_parse_x_im_contact(sd->data, FALSE, &account, 3802 if (gaim_gtk_parse_x_im_contact(sd->data, FALSE, &account,
3803 &protocol, &username, NULL)) 3803 &protocol, &username, NULL))
3804 { 3804 {
3805 if (account == NULL) 3805 if (account == NULL)
3806 { 3806 {
3807 gaim_notify_error(NULL, NULL, 3807 gaim_notify_error(NULL, NULL,
3808 _("You are not currently signed on with an account that " 3808 _("You are not currently signed on with an account that "
3809 "can add that buddy."), NULL); 3809 "can add that buddy."), NULL);
3810 } 3810 }
3811 else 3811 else
3812 { 3812 {
3813 gaim_conversation_new(GAIM_CONV_IM, account, username); 3813 c = gaim_conversation_new(GAIM_CONV_IM, account, username);
3814 gaim_conv_window_add_conversation(win, c);
3814 } 3815 }
3815 } 3816 }
3816 3817
3817 if (username != NULL) g_free(username); 3818 if (username != NULL) g_free(username);
3818 if (protocol != NULL) g_free(protocol); 3819 if (protocol != NULL) g_free(protocol);