summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-31 02:35:39 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-31 02:35:39 (EDT)
commit867b726401167a19a591bbd577982b060b2a583f (patch)
tree3f670961cbffac91d762515773c331f33156fa00
parentc68fc0fd6e1df5b23a3b2d96be8eee0f6268b54c (diff)
downloadmarquee-867b726401167a19a591bbd577982b060b2a583f.zip
marquee-867b726401167a19a591bbd577982b060b2a583f.tar.gz
marquee-867b726401167a19a591bbd577982b060b2a583f.tar.bz2
mq_web_view_view_source_scheme_methods.context_menu(): s/normal/view_source/
Fixes segmentation fault on right-click.
-rw-r--r--src/web-view-schemes/view-source.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c
index f1dba96..d0e9b28 100644
--- a/src/web-view-schemes/view-source.c
+++ b/src/web-view-schemes/view-source.c
@@ -185,11 +185,11 @@ context_menu(MqWebView *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme,
/* Get the reported context (which isn't very descriptive) and save the
* hit test result for use by action callbacks. */
context = webkit_hit_test_result_get_context(hit_test_result);
- if (scheme->normal.hit_test_result) {
- g_object_unref(scheme->normal.hit_test_result);
+ if (scheme->view_source.hit_test_result) {
+ g_object_unref(scheme->view_source.hit_test_result);
}
- scheme->normal.hit_test_result = hit_test_result;
- g_object_ref(scheme->normal.hit_test_result);
+ scheme->view_source.hit_test_result = hit_test_result;
+ g_object_ref(scheme->view_source.hit_test_result);
context_handled = FALSE;
/* Build the context menu. */