diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-14 23:16:32 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-14 23:16:32 (EST) |
commit | 78fcaa62fb5880fd20ddff851b898658c0f4dfeb (patch) | |
tree | 42c49382c7730abc59d9784565ae432661f33c18 /src | |
parent | 1d78f8a495125e4e312552228c61dd3caf9e9ae1 (diff) | |
download | marquee-78fcaa62fb5880fd20ddff851b898658c0f4dfeb.zip marquee-78fcaa62fb5880fd20ddff851b898658c0f4dfeb.tar.gz marquee-78fcaa62fb5880fd20ddff851b898658c0f4dfeb.tar.bz2 |
mq_tab_page_focus_uri_entry(): New function
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-page.c | 13 | ||||
-rw-r--r-- | src/tab-page.h | 3 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index 02ef5ba..3cfd957 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -46,6 +46,7 @@ struct _MqTabPage { GtkWidget *label; const gchar *title; WebKitWebView *web_view; + GtkWidget *navigation_toolbar; }; enum { @@ -76,7 +77,6 @@ title_cb(WebKitWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec, static void init_non_root(MqTabPage *tab_page) { - GtkWidget *navigation_toolbar; GtkWidget *find_toolbar; tab_page->application = mq_window_get_application(tab_page->window); @@ -94,14 +94,14 @@ init_non_root(MqTabPage *tab_page) find_toolbar = mq_find_toolbar_new(MQ_WEB_VIEW(tab_page->web_view)); - navigation_toolbar = mq_navigation_toolbar_new( + tab_page->navigation_toolbar = mq_navigation_toolbar_new( mq_application_get_config( mq_window_get_application(tab_page->window)), tab_page, MQ_FIND_TOOLBAR(find_toolbar), MQ_WEB_VIEW(tab_page->web_view), tab_page->uri); gtk_box_pack_start(GTK_BOX(tab_page), - navigation_toolbar, FALSE, FALSE, 0); + tab_page->navigation_toolbar, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(tab_page), find_toolbar, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(tab_page), @@ -305,3 +305,10 @@ mq_tab_page_end_scrolling_tab_labels(MqTabPage *node) { mq_tab_label_end_scrolling(MQ_TAB_LABEL(node->label)); } + +void +mq_tab_page_focus_uri_entry(MqTabPage *tab_page) +{ + mq_navigation_toolbar_focus_uri_entry( + MQ_NAVIGATION_TOOLBAR(tab_page->navigation_toolbar)); +} diff --git a/src/tab-page.h b/src/tab-page.h index 1bb2b0c..03f50ed 100644 --- a/src/tab-page.h +++ b/src/tab-page.h @@ -95,6 +95,9 @@ mq_tab_page_begin_scrolling_tab_labels(MqTabPage *node); void mq_tab_page_end_scrolling_tab_labels(MqTabPage *node); +void +mq_tab_page_focus_uri_entry(MqTabPage *tab_page); + G_END_DECLS #endif /* MQ_TAB_PAGE_H */ |