summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-08 02:25:25 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-08 02:25:25 (EDT)
commitdb5f9b3fa27d12167baf5525f2aa56b283989cc3 (patch)
tree91b3c43b1073be65187fc51f9724e48f41268386 /src
parenta39cfd543362c0e83a6e9fbc8fd9cba73b8938c2 (diff)
downloadmarquee-db5f9b3fa27d12167baf5525f2aa56b283989cc3.zip
marquee-db5f9b3fa27d12167baf5525f2aa56b283989cc3.tar.gz
marquee-db5f9b3fa27d12167baf5525f2aa56b283989cc3.tar.bz2
mq_tab_chrome_set_web_view(): Get WebKitFindController and save in MqTabChrome
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c1
-rw-r--r--src/tab-chrome.h41
2 files changed, 22 insertions, 20 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index f09eb25..3133196 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -874,5 +874,6 @@ void
mq_tab_chrome_set_web_view(MqTabChrome *chrome, WebKitWebView *web_view)
{
chrome->web_view = web_view;
+ chrome->find_controller = webkit_web_view_get_find_controller(web_view);
connect_web_view(chrome);
}
diff --git a/src/tab-chrome.h b/src/tab-chrome.h
index 658351b..257bd8b 100644
--- a/src/tab-chrome.h
+++ b/src/tab-chrome.h
@@ -30,26 +30,27 @@ typedef struct MqTabChrome MqTabChrome;
#include "tab.h"
struct MqTabChrome {
- MqConfig *config;
- MqTab *tab;
- GtkWidget *container;
- GtkWidget *back_forward_box;
- GtkWidget *back_button;
- GtkWidget *forward_button;
- GtkWidget *stop_icon;
- GtkWidget *reload_icon;
- GtkToolItem *stop_reload_button;
- GtkWidget *uri_entry;
- PangoAttrList *hovered_link_style;
- gchar *hovered_link_uri;
- GtkWidget *find_revealer;
- GtkWidget *find_search_entry;
- WebKitWebView *web_view;
- gboolean load_failed;
- GtkWidget *back_forward_popover;
- gint back_items;
- GtkToolItem *menu_button;
- GtkWidget *menu_popover;
+ MqConfig *config;
+ MqTab *tab;
+ GtkWidget *container;
+ GtkWidget *back_forward_box;
+ GtkWidget *back_button;
+ GtkWidget *forward_button;
+ GtkWidget *stop_icon;
+ GtkWidget *reload_icon;
+ GtkToolItem *stop_reload_button;
+ GtkWidget *uri_entry;
+ PangoAttrList *hovered_link_style;
+ gchar *hovered_link_uri;
+ GtkWidget *find_revealer;
+ GtkWidget *find_search_entry;
+ WebKitWebView *web_view;
+ WebKitFindController *find_controller;
+ gboolean load_failed;
+ GtkWidget *back_forward_popover;
+ gint back_items;
+ GtkToolItem *menu_button;
+ GtkWidget *menu_popover;
};
MqTabChrome *