summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-21 23:37:25 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-21 23:37:25 (EDT)
commit6b7d8cab5abba7e15c69b94e14ed290e02d77e33 (patch)
tree3ef8db7088716b95e8ded74f347d548deba64c34 /src
parent9873ccb9a6c6876b9fc7024f89a1f102efaeedcc (diff)
downloadmarquee-6b7d8cab5abba7e15c69b94e14ed290e02d77e33.zip
marquee-6b7d8cab5abba7e15c69b94e14ed290e02d77e33.tar.gz
marquee-6b7d8cab5abba7e15c69b94e14ed290e02d77e33.tar.bz2
MqTab: Save tab image and label in struct
Diffstat (limited to 'src')
-rw-r--r--src/tab.c2
-rw-r--r--src/tab.h2
2 files changed, 4 insertions, 0 deletions
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;