summaryrefslogtreecommitdiffstats
path: root/src/tab.h
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 02:14:13 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 02:21:44 (EDT)
commitbbb8adf7d081ded3d95cdb00213d3cd129b20018 (patch)
tree58a6cf3854846972a7477d238c60a1b64c56ab9c /src/tab.h
parenta25251d553f0f20bb1dda949d7bd87e50da18b84 (diff)
downloadmarquee-bbb8adf7d081ded3d95cdb00213d3cd129b20018.zip
marquee-bbb8adf7d081ded3d95cdb00213d3cd129b20018.tar.gz
marquee-bbb8adf7d081ded3d95cdb00213d3cd129b20018.tar.bz2
MqTab: Save tab favicon and title in struct
This allows the "New tab" title to remain, rather than getting overwritten with NULL from webkit_web_view_get_title().
Diffstat (limited to 'src/tab.h')
-rw-r--r--src/tab.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/tab.h b/src/tab.h
index b125cd9..3361acc 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -28,14 +28,16 @@
#include "tab-body.h"
typedef struct {
- GtkWidget *container;
- MqTabChrome *chrome;
- MqTabBody *body;
- GtkWidget *tab;
- GtkWidget *tab_image;
- GtkWidget *tab_label;
- guint tab_position;
- WebKitWebView *web_view;
+ GtkWidget *container;
+ MqTabChrome *chrome;
+ MqTabBody *body;
+ GtkWidget *tab;
+ GtkWidget *tab_image;
+ GtkWidget *tab_label;
+ cairo_surface_t *favicon;
+ const gchar *title;
+ guint tab_position;
+ WebKitWebView *web_view;
} MqTab;
MqTab *