From 6b7d8cab5abba7e15c69b94e14ed290e02d77e33 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 21 Sep 2017 23:37:25 -0400 Subject: MqTab: Save tab image and label in struct --- (limited to 'src') diff --git a/src/tab.c b/src/tab.c index d1da243..12efad2 100644 --- a/src/tab.c +++ b/src/tab.c @@ -33,6 +33,8 @@ mq_tab_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label) MqTab *tab; 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->body = mq_tab_body_new(uri); tab->web_view = mq_tab_body_get_web_view(tab->body); diff --git a/src/tab.h b/src/tab.h index 14dc49d..19c0d36 100644 --- a/src/tab.h +++ b/src/tab.h @@ -31,6 +31,8 @@ typedef struct { GtkWidget *container; MqTabChrome *chrome; MqTabBody *body; + GtkWidget *tab_image; + GtkWidget *tab_label; guint tab_position; WebKitWebView *web_view; } MqTab; -- cgit v0.9.1