Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitaa12734c147f4112ede7f3188f6257660a0aa31f (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-09 13:35:18 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-09 13:35:18 +0100
Files5fedd434a96504bee9d2caeeadf6123797ab23db
goodwolf-aa12734c147f4112ede7f3188f6257660a0aa31f.tar
goodwolf-aa12734c147f4112ede7f3188f6257660a0aa31f.tar.gz
goodwolf-aa12734c147f4112ede7f3188f6257660a0aa31f.zip
Parentd33378425a568cfa421de689cc0ff571b30daf12 (diff)
badwolf.c: Insert tab rather than append
1 files changed, 2 insertions, 1 deletions
-rw-r--r--badwolf.c3
diff --git a/badwolf.c b/badwolf.c
index c8ad704..44590b8 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -311,9 +311,10 @@ struct Client *new_browser(struct Window *window, gchar *target_url)
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_append_page(notebook, box, NULL) == -1) {
+ if(gtk_notebook_insert_page(notebook, box, NULL, current_page++) == -1) {
return -1;
}