logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: ba6b3eec9a4345f50f214cfd4c16c523cece7114
parent: 045639a21a6a93cb1bff37a8ddc5bd090e43d8b3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 10 Mar 2019 13:44:17 +0100

Fix insert_page math (++ → +2)

Diffstat:

Mbadwolf.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }