diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-17 02:26:25 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-17 02:26:25 (EDT) |
commit | 4e6d3802bb2dea8b55d92541d26306e2b6128704 (patch) | |
tree | 58b50be042801d07fecd71d93debf52c4fcd802f /src | |
parent | aee614a8e32325e217970c81cc0e9a3dcd6a4b83 (diff) | |
download | marquee-4e6d3802bb2dea8b55d92541d26306e2b6128704.zip marquee-4e6d3802bb2dea8b55d92541d26306e2b6128704.tar.gz marquee-4e6d3802bb2dea8b55d92541d26306e2b6128704.tar.bz2 |
mq_tab_chrome_new(): Save tab_image and tab_label
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 3 | ||||
-rw-r--r-- | src/tab-chrome.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index ac48c1a..169a8a0 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -74,6 +74,9 @@ mq_tab_chrome_new(gchar *uri, GtkWidget *tab_image, GtkWidget *tab_label) 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 cea26d9..96385a3 100644 --- a/src/tab-chrome.h +++ b/src/tab-chrome.h @@ -26,6 +26,8 @@ #include <webkit2/webkit2.h> typedef struct { + GtkWidget *tab_image; + GtkWidget *tab_label; GtkWidget *container; GtkWidget *uri_entry; WebKitWebView *web_view; |