summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-chrome.c5
-rw-r--r--src/tab-chrome.h5
-rw-r--r--src/tab.c2
3 files changed, 3 insertions, 9 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index e205ae4..71eb431 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -450,15 +450,12 @@ navigation_toolbar_new(MqTabChrome *chrome, gchar *uri)
}
MqTabChrome *
-mq_tab_chrome_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label)
+mq_tab_chrome_new(gchar *uri)
{
MqTabChrome *chrome;
chrome = malloc(sizeof(*chrome));
- chrome->tab_image = tab_image;
- chrome->tab_label = tab_label;
-
chrome->container = gtk_grid_new();
gtk_grid_attach(GTK_GRID(chrome->container),
navigation_toolbar_new(chrome, uri), 0, 0, 1, 1);
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index 4940fc8..cda67ad 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -26,9 +26,6 @@
#include <webkit2/webkit2.h>
typedef struct {
- GtkWidget *tab_image;
- GtkWidget *tab_label;
- guint tab_position;
GtkWidget *container;
GtkWidget *back_forward_box;
GtkWidget *back_button;
@@ -46,7 +43,7 @@ typedef struct {
} MqTabChrome;
MqTabChrome *
-mq_tab_chrome_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label);
+mq_tab_chrome_new(gchar *uri);
GtkWidget *
mq_tab_chrome_get_container(MqTabChrome *chrome);
diff --git a/src/tab.c b/src/tab.c
index 223b751..b8a7b52 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -64,7 +64,7 @@ mq_tab_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label)
tab = malloc(sizeof(*tab));
tab->tab_image = tab_image;
tab->tab_label = tab_label;
- tab->chrome = mq_tab_chrome_new(uri, tab_image, tab_label);
+ tab->chrome = mq_tab_chrome_new(uri);
tab->body = mq_tab_body_new(uri);
tab->web_view = mq_tab_body_get_web_view(tab->body);
/* FIXME: Doesn't work? */