From 4dc8025b8f2eb770280548198720cdbb5bd053d5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 22 Oct 2017 22:02:00 -0400 Subject: MqWindow: Use MqNotebook --- (limited to 'src') diff --git a/src/window.c b/src/window.c index 8eb6c64..ecad69a 100644 --- a/src/window.c +++ b/src/window.c @@ -27,6 +27,7 @@ #include #include "application.h" +#include "notebook.h" #include "tab-page.h" struct _MqWindow { @@ -325,11 +326,7 @@ mq_window_init(MqWindow *window) g_signal_connect(window, "destroy", G_CALLBACK(destroy_cb), NULL); - window->notebook = gtk_notebook_new(); - gtk_notebook_set_show_border(GTK_NOTEBOOK(window->notebook), FALSE); - gtk_notebook_set_scrollable(GTK_NOTEBOOK(window->notebook), TRUE); - gtk_notebook_set_group_name(GTK_NOTEBOOK(window->notebook), "mq-tabs"); - gtk_widget_set_can_focus(window->notebook, FALSE); + window->notebook = mq_notebook_new(window); gtk_container_add(GTK_CONTAINER(window), window->notebook); g_signal_connect(window->notebook, "switch-page", G_CALLBACK(switch_page_cb), window); -- cgit v0.9.1