diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-21 23:57:34 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-21 23:57:34 (EDT) |
commit | d0f1011e869717484e94cda4e922071b5f82ec32 (patch) | |
tree | 5c8d0a69bdfa0a0f4c4c258edcaf7d889094e3a0 | |
parent | f6c1261a62fa56c593a90ce36a3231671b773a19 (diff) | |
download | marquee-d0f1011e869717484e94cda4e922071b5f82ec32.zip marquee-d0f1011e869717484e94cda4e922071b5f82ec32.tar.gz marquee-d0f1011e869717484e94cda4e922071b5f82ec32.tar.bz2 |
MqTabChrome: Drop saving of tab image and label
-rw-r--r-- | src/tab-chrome.c | 5 | ||||
-rw-r--r-- | src/tab-chrome.h | 5 | ||||
-rw-r--r-- | src/tab.c | 2 |
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); @@ -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? */ |