talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit ea866a6331ad1d4cbaea6e22ca367a285ba0e7fc
parent f40de0b8b530b05cd49291c0b965fbcaba14c0b5
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 23 Apr 2017 20:16:58 +0200

Fix build for webkitgtk versions between 1.5.1 and 1.9.3.

Diffstat:
Msrc/plugins/fancy/fancy_viewer.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c @@ -853,12 +853,11 @@ static gboolean press_button_cb (WebKitWebView *view, GdkEvent *ev, FancyViewer *viewer) { #if WEBKIT_CHECK_VERSION(1,5,1) -# if WEBKIT_CHECK_VERSION(1,9,3) - /* The x and y properties were added in 1.9.3 */ 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, "x", &viewer->click_x, "y", &viewer->click_y,