diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-22 22:02:00 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-22 22:02:00 (EDT) |
commit | 4dc8025b8f2eb770280548198720cdbb5bd053d5 (patch) | |
tree | 63b3174fabb852f95e541d22abf82980a9cf8e60 /src | |
parent | 52ed6fa8af3a50191367d5e2c38008c0c73e620c (diff) | |
download | marquee-4dc8025b8f2eb770280548198720cdbb5bd053d5.zip marquee-4dc8025b8f2eb770280548198720cdbb5bd053d5.tar.gz marquee-4dc8025b8f2eb770280548198720cdbb5bd053d5.tar.bz2 |
MqWindow: Use MqNotebook
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 7 |
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); |