summaryrefslogtreecommitdiffstats
path: root/src/gui_beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-11 21:30:09 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-11 21:30:09 +0200
commit25328e39d2a6e3ded82bf282a2e248ce7209f1b4 (patch)
treea60cc0fc5c4379c8d5bd0c35c89e3bc200611898 /src/gui_beval.c
parent84d9390480548c8d711dd772cb162a91d0bb3c30 (diff)
patch 8.1.0368: GTK code has too many #ifdefs and GTK 2.10 building failsv8.1.0368
Problem: GTK code has too many #ifdefs and building fails with GTK 2.10. Solution: Always use gtk_widget_get_window() and define it for older GTK versions. (Ken Takata, closes #3421)
Diffstat (limited to 'src/gui_beval.c')
-rw-r--r--src/gui_beval.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui_beval.c b/src/gui_beval.c
index 5e70d61bfa..99651da5d9 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -991,11 +991,7 @@ drawBalloon(BalloonEval *beval)
# endif
/* Compute position of the balloon area */
-# if GTK_CHECK_VERSION(3,0,0)
gdk_window_get_origin(gtk_widget_get_window(beval->target), &x, &y);
-# else
- gdk_window_get_origin(beval->target->window, &x, &y);
-# endif
x += beval->x;
y += beval->y;