diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-21 23:37:25 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-21 23:37:25 (EDT) |
commit | 6b7d8cab5abba7e15c69b94e14ed290e02d77e33 (patch) | |
tree | 3ef8db7088716b95e8ded74f347d548deba64c34 | |
parent | 9873ccb9a6c6876b9fc7024f89a1f102efaeedcc (diff) | |
download | marquee-6b7d8cab5abba7e15c69b94e14ed290e02d77e33.zip marquee-6b7d8cab5abba7e15c69b94e14ed290e02d77e33.tar.gz marquee-6b7d8cab5abba7e15c69b94e14ed290e02d77e33.tar.bz2 |
MqTab: Save tab image and label in struct
-rw-r--r-- | src/tab.c | 2 | ||||
-rw-r--r-- | src/tab.h | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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); @@ -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; |