From e633c6dc2bda785c455cc57bdef84a9974302b33 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Sep 2017 02:32:06 -0400 Subject: mq_tab_chrome_update_tab_position(): New function --- (limited to 'src') 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 -- cgit v0.9.1