logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: e094bb79e56851ebf3f9140bd14df363be8921d8
parent: 62aed51958711742617e5eda3249f7c4f4cbcc17
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 10 Mar 2019 13:46:10 +0100

Allow configuration of tabs position

Diffstat:

Mbadwolf.c3+++
Aconfig.h2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -6,6 +6,8 @@ #include <gtk/gtk.h> #include <webkit2/webkit2.h> +#include "config.h" + struct Window { GtkWidget *main_window; @@ -357,6 +359,7 @@ int main(int argc, char *argv[]) gtk_notebook_set_action_widget(GTK_NOTEBOOK(window->notebook), window->new_tab, GTK_PACK_END); gtk_notebook_set_scrollable(GTK_NOTEBOOK(window->notebook), TRUE); + gtk_notebook_set_tab_pos(GTK_NOTEBOOK(window->notebook), BADWOLF_TAB_POSITION); gtk_container_add(GTK_CONTAINER(window->main_window), window->notebook); diff --git a/config.h b/config.h @@ -0,0 +1 @@ +#define BADWOLF_TAB_POSITION GTK_POS_TOP+ \ No newline at end of file