1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-10-31 15:35:03 -04:00

Fix sorting problem when using tabs

Fixes #949
This commit is contained in:
Riamse 2014-05-06 21:36:08 -07:00 committed by TingPing
parent 6ef41f7d4f
commit e5f7441bae

View File

@ -388,7 +388,7 @@ tab_add_sorted (chanview *cv, GtkWidget *box, GtkWidget *tab, chan *ch)
if (ch->tag == 0 && cv->cb_compare (a, b) > 0) if (ch->tag == 0 && cv->cb_compare (a, b) > 0)
{ {
gtk_box_pack_start (GTK_BOX (box), tab, 0, 0, 0); gtk_box_pack_start (GTK_BOX (box), tab, 0, 0, 0);
gtk_box_reorder_child (GTK_BOX (box), tab, i); gtk_box_reorder_child (GTK_BOX (box), tab, ++i);
gtk_widget_show (tab); gtk_widget_show (tab);
return; return;
} }