summaryrefslogtreecommitdiffstats
path: root/src/tab.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 02:21:54 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 02:21:54 (EDT)
commitaee614a8e32325e217970c81cc0e9a3dcd6a4b83 (patch)
tree9047ae2f2cbb14575499577639d388568ddf930e /src/tab.c
parent55c42fbcaf1c054db61da503aa6fe773cbd0f28a (diff)
downloadmarquee-aee614a8e32325e217970c81cc0e9a3dcd6a4b83.zip
marquee-aee614a8e32325e217970c81cc0e9a3dcd6a4b83.tar.gz
marquee-aee614a8e32325e217970c81cc0e9a3dcd6a4b83.tar.bz2
Revert add_tab() and pass label widgets instead
Diffstat (limited to 'src/tab.c')
-rw-r--r--src/tab.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tab.c b/src/tab.c
index 52e0c2c..0f8d298 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -28,18 +28,17 @@
#include "tab-body.h"
MqTab *
-mq_tab_new(gchar *uri, GtkNotebook *notebook)
+mq_tab_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label)
{
MqTab *tab;
tab = malloc(sizeof(*tab));
- tab->container = gtk_grid_new();
-
- tab->chrome = mq_tab_chrome_new(uri, notebook, tab->container);
+ tab->chrome = mq_tab_chrome_new(uri, tab_image, tab_label);
tab->body = mq_tab_body_new(uri);
mq_tab_chrome_set_web_view(tab->chrome,
mq_tab_body_get_web_view(tab->body));
+ tab->container = gtk_grid_new();
gtk_grid_attach(GTK_GRID(tab->container),
mq_tab_chrome_get_container(tab->chrome),
0, 0, 1, 1);