summary refs log tree commit diff stats
path: root/src/fe-gtk/chanview-tabs.c
diff options
context:
space:
mode:
authorRiamse <andrewwang43@gmail.com>2014-05-06 21:36:08 -0700
committerTingPing <tingping@tingping.se>2014-05-11 05:02:20 -0400
commite5f7441bae4bb2b0cf154a4f3862cc99c59250e4 (patch)
tree8f43cf2f35a6151a6846cbba1267c5c112df64f7 /src/fe-gtk/chanview-tabs.c
parent6ef41f7d4f1cc5b96c645a463499dc7ea0c768f7 (diff)
Fix sorting problem when using tabs
Fixes #949
Diffstat (limited to 'src/fe-gtk/chanview-tabs.c')
-rw-r--r--src/fe-gtk/chanview-tabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/chanview-tabs.c b/src/fe-gtk/chanview-tabs.c
index 5024d366..8f940c24 100644
--- a/src/fe-gtk/chanview-tabs.c
+++ b/src/fe-gtk/chanview-tabs.c
@@ -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)
 			{
 				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);
 				return;
 			}