From d0f1011e869717484e94cda4e922071b5f82ec32 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 21 Sep 2017 23:57:34 -0400 Subject: MqTabChrome: Drop saving of tab image and label --- (limited to 'src') 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 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? */ -- cgit v0.9.1