summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c7
1 files changed, 2 insertions, 5 deletions
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 <gtk/gtk.h>
#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);