From 9101eb762bc996627119c31a277b7fac53b73b44 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Sep 2017 16:04:39 -0400 Subject: src/tab.[ch]: New files And use in src/window.c. --- (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index 7fc36cc..db1dbe1 100644 --- a/src/window.c +++ b/src/window.c @@ -24,13 +24,17 @@ #include #include "window.h" +#include "tab.h" static void add_tab(MqWindow *window, gchar *uri, gint position) { + MqTab *tab; + + tab = mq_tab_new(uri); /* TODO: Set tab label (container widget with icon and title) */ position = gtk_notebook_insert_page(GTK_NOTEBOOK(window->gtk_notebook), - gtk_label_new(uri), NULL, position); + mq_tab_get_container(tab), NULL, position); } MqWindow * -- cgit v0.9.1