commit: f6471bb313fd4ec075d1d4360c33380c0501b741
parent: e1e17c0d825ea2d20edf9f468142abf0ab41279c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 9 Mar 2019 11:54:06 +0100
badwolf.c: make notebook scrollable and reorderable
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/badwolf.c b/badwolf.c
@@ -153,6 +153,8 @@ static WebKitWebView *WebViewCb_create(WebKitWebView *webView, WebKitNavigationA
if(gtk_notebook_append_page(GTK_NOTEBOOK(window->notebook), browser->box, NULL) == -1) {
return NULL;
} else {
+ gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(window->notebook), browser->box, TRUE);
+
gtk_widget_draw(window->notebook, NULL);
return browser->webView;
}
@@ -337,6 +339,7 @@ int main(int argc, char *argv[])
window->new_tab = gtk_button_new_from_icon_name("tab-new", GTK_ICON_SIZE_SMALL_TOOLBAR);
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_container_add(GTK_CONTAINER(window->main_window), window->notebook);
gtk_notebook_append_page(GTK_NOTEBOOK(window->notebook), new_browser(window, target_url)->box, NULL);