Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitba6b3eec9a4345f50f214cfd4c16c523cece7114 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-10 13:44:17 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-10 13:44:17 +0100
Files01ac841d0e0ae8b1e0db80a090e26104d003a859
goodwolf-ba6b3eec9a4345f50f214cfd4c16c523cece7114.tar
goodwolf-ba6b3eec9a4345f50f214cfd4c16c523cece7114.tar.gz
goodwolf-ba6b3eec9a4345f50f214cfd4c16c523cece7114.zip
Parent045639a21a6a93cb1bff37a8ddc5bd090e43d8b3 (diff)
Fix insert_page math (++ → +2)
1 files changed, 1 insertions, 1 deletions
-rw-r--r--badwolf.c2
diff --git a/badwolf.c b/badwolf.c
index 14cf03b..84a825e 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -320,7 +320,7 @@ int badwolf_new_tab(GtkNotebook *notebook, GtkWidget *box)
gint current_page = gtk_notebook_get_current_page(notebook);
gtk_widget_show_all(box);
- if(gtk_notebook_insert_page(notebook, box, NULL, current_page++) == -1) {
+ if(gtk_notebook_insert_page(notebook, box, NULL, (current_page+2)) == -1) {
return -1;
}