Mercurial > pidgin.yaz
comparison src/conversation.c @ 4415:c90039137172
[gaim-migrate @ 4688]
Tabs are no longer off to the right one when reordered.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 26 Jan 2003 01:22:02 +0000 |
parents | 76223649765b |
children | be8f9ca74ddf |
comparison
equal
deleted
inserted
replaced
4414:04d2e57b22c5 | 4415:c90039137172 |
---|---|
687 ops = gaim_window_get_ops(win); | 687 ops = gaim_window_get_ops(win); |
688 | 688 |
689 if (ops != NULL && ops->move_conversation != NULL) | 689 if (ops != NULL && ops->move_conversation != NULL) |
690 ops->move_conversation(win, conv, new_index); | 690 ops->move_conversation(win, conv, new_index); |
691 | 691 |
692 if (new_index > index) | |
693 new_index--; | |
694 | |
695 /* Remove the old one. */ | |
696 win->conversations = g_list_delete_link(win->conversations, l); | |
697 | |
692 /* Insert it where it should go. */ | 698 /* Insert it where it should go. */ |
693 win->conversations = g_list_insert(win->conversations, conv, | 699 win->conversations = g_list_insert(win->conversations, conv, new_index); |
694 (new_index > index ? new_index + 1 : new_index)); | |
695 | |
696 /* Remove the old one. */ | |
697 l->data = NULL; | |
698 win->conversations = g_list_remove_link(win->conversations, l); | |
699 g_list_free_1(l); | |
700 | 700 |
701 update_conv_indexes(win); | 701 update_conv_indexes(win); |
702 } | 702 } |
703 | 703 |
704 struct gaim_conversation * | 704 struct gaim_conversation * |