comparison src/gtkconv.c @ 5901:74e273e22f94

[gaim-migrate @ 6333] Fixed a warning when moving a conversation to the last position in a window. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 15 Jun 2003 20:23:52 +0000
parents cc7870e1e3b3
children 6889b89cab90
comparison
equal deleted inserted replaced
5900:faf4363e56a8 5901:74e273e22f94
1723 gaim_window_remove_conversation(win, 1723 gaim_window_remove_conversation(win,
1724 gaim_conversation_get_index(conv)); 1724 gaim_conversation_get_index(conv));
1725 1725
1726 pos = gaim_window_add_conversation(dest_win, conv); 1726 pos = gaim_window_add_conversation(dest_win, conv);
1727 1727
1728 gaim_window_move_conversation(dest_win, pos, dest_page_num); 1728 if (pos != dest_page_num)
1729 gaim_window_move_conversation(dest_win, pos, dest_page_num);
1729 1730
1730 gaim_window_switch_conversation(dest_win, dest_page_num); 1731 gaim_window_switch_conversation(dest_win, dest_page_num);
1731 } 1732 }
1732 1733
1733 gtk_widget_grab_focus(GAIM_GTK_CONVERSATION(conv)->entry); 1734 gtk_widget_grab_focus(GAIM_GTK_CONVERSATION(conv)->entry);