summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 02:32:06 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 02:32:06 (EDT)
commite633c6dc2bda785c455cc57bdef84a9974302b33 (patch)
treed88e0b16ce8709bfd9203a647377a4ec0e611171
parent6770dc83132d6a01f05d60a4374e44f6ac520838 (diff)
downloadmarquee-e633c6dc2bda785c455cc57bdef84a9974302b33.zip
marquee-e633c6dc2bda785c455cc57bdef84a9974302b33.tar.gz
marquee-e633c6dc2bda785c455cc57bdef84a9974302b33.tar.bz2
mq_tab_chrome_update_tab_position(): New function
-rw-r--r--src/tab-chrome.c6
-rw-r--r--src/tab-chrome.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index a2571eb..c03f393 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -90,6 +90,12 @@ mq_tab_chrome_get_container(MqTabChrome *chrome)
return chrome->container;
}
+void
+mq_tab_chrome_update_tab_position(MqTabChrome *chrome, guint position)
+{
+ chrome->tab_position = position;
+}
+
static void
load_changed_cb(WebKitWebView *web_view, WebKitLoadEvent load_event,
MqTabChrome *chrome)
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index 96385a3..035be40 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -28,6 +28,7 @@
typedef struct {
GtkWidget *tab_image;
GtkWidget *tab_label;
+ guint tab_position;
GtkWidget *container;
GtkWidget *uri_entry;
WebKitWebView *web_view;
@@ -40,6 +41,9 @@ GtkWidget *
mq_tab_chrome_get_container(MqTabChrome *chrome);
void
+mq_tab_chrome_update_tab_position(MqTabChrome *chrome, guint position);
+
+void
mq_tab_chrome_set_web_view(MqTabChrome *chrome, WebKitWebView *web_view);
#endif