summaryrefslogtreecommitdiffstats
path: root/src/web-view.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-24 04:41:19 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-24 04:41:19 (EDT)
commitd1ce1afc2240cfdeda48a23dd616a398ec336a72 (patch)
tree1683d10717f292071077869d3236d0de91bbd822 /src/web-view.c
parentd79413597539863361033c032f8697896231a7fc (diff)
downloadmarquee-d1ce1afc2240cfdeda48a23dd616a398ec336a72.zip
marquee-d1ce1afc2240cfdeda48a23dd616a398ec336a72.tar.gz
marquee-d1ce1afc2240cfdeda48a23dd616a398ec336a72.tar.bz2
mq_notebook_insert_*(): Optionally switch to new tab
And update calls.
Diffstat (limited to 'src/web-view.c')
-rw-r--r--src/web-view.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/web-view.c b/src/web-view.c
index f4b6eab..ca7f4fb 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -74,7 +74,8 @@ menu_open_link_tab_activate_cb(GtkAction G_GNUC_UNUSED *action,
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(web_view->tab_page))),
webkit_hit_test_result_get_link_uri(web_view->hit_test_result),
- web_view->tab_page);
+ web_view->tab_page,
+ !mq_config_get_boolean(web_view->config, "tabs.background"));
}
static void
@@ -106,7 +107,8 @@ menu_open_image_tab_activate_cb(GtkAction G_GNUC_UNUSED *action,
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(web_view->tab_page))),
webkit_hit_test_result_get_image_uri(web_view->hit_test_result),
- web_view->tab_page);
+ web_view->tab_page,
+ !mq_config_get_boolean(web_view->config, "tabs.background"));
}
static void
@@ -138,7 +140,8 @@ menu_open_video_tab_activate_cb(GtkAction G_GNUC_UNUSED *action,
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(web_view->tab_page))),
webkit_hit_test_result_get_media_uri(web_view->hit_test_result),
- web_view->tab_page);
+ web_view->tab_page,
+ !mq_config_get_boolean(web_view->config, "tabs.background"));
}
static void
@@ -170,7 +173,8 @@ menu_open_audio_tab_activate_cb(GtkAction G_GNUC_UNUSED *action,
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(web_view->tab_page))),
webkit_hit_test_result_get_media_uri(web_view->hit_test_result),
- web_view->tab_page);
+ web_view->tab_page,
+ !mq_config_get_boolean(web_view->config, "tabs.background"));
}
static void
@@ -541,7 +545,9 @@ button_press_cb(GtkWidget *widget, GdkEventButton *event)
MQ_NOTEBOOK(gtk_widget_get_parent(
GTK_WIDGET(web_view->tab_page))),
webkit_hit_test_result_get_link_uri(hit_test_result),
- web_view->tab_page);
+ web_view->tab_page,
+ !mq_config_get_boolean(web_view->config,
+ "tabs.background"));
} else if (webkit_hit_test_result_context_is_editable(hit_test_result)){
/* Let WebKit handle pasting from the primary clipboard into an
* editable element. */