A fix for a fix in ea866a633.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 24 Apr 2017 05:42:27 +0000 (07:42 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 24 Apr 2017 05:42:27 +0000 (07:42 +0200)
src/plugins/fancy/fancy_viewer.c

index 36e2b27..efdd232 100644 (file)
@@ -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;