From: Andrej Kacian Date: Mon, 24 Apr 2017 05:42:27 +0000 (+0200) Subject: A fix for a fix in ea866a633. X-Git-Tag: 3.16.0~160 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=0a83c86dca7e7e2cf68ced12c0d216444cc2f5c3 A fix for a fix in ea866a633. --- diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c index 36e2b2737..efdd232ae 100644 --- a/src/plugins/fancy/fancy_viewer.c +++ b/src/plugins/fancy/fancy_viewer.c @@ -856,13 +856,14 @@ static gboolean press_button_cb (WebKitWebView *view, GdkEvent *ev, gint type; WebKitHitTestResult *result = webkit_web_view_get_hit_test_result(view, (GdkEventButton *)ev); -# if WEBKIT_CHECK_VERSION(1,9,3) - /* The x and y properties were added in 1.9.3 */ + g_object_get(G_OBJECT(result), "context", &type, +# if WEBKIT_CHECK_VERSION(1,9,3) "x", &viewer->click_x, "y", &viewer->click_y, - NULL); # endif /* 1.9.3 */ + NULL); + if (type & WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION) return FALSE;