summaryrefslogtreecommitdiff
path: root/src/vim.h
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/vim.h
parent84d9390480548c8d711dd772cb162a91d0bb3c30 (diff)
downloadvim-git-25328e39d2a6e3ded82bf282a2e248ce7209f1b4.tar.gz
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/vim.h')
-rw-r--r--src/vim.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vim.h b/src/vim.h
index ece5414fe..6d1c31240 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1241,7 +1241,7 @@ typedef struct {
#define MIN_SWAP_PAGE_SIZE 1048
#define MAX_SWAP_PAGE_SIZE 50000
-/* Special values for current_SID. */
+/* Special values for current_sctx.sc_sid. */
#define SID_MODELINE -1 /* when using a modeline */
#define SID_CMDARG -2 /* for "--cmd" argument */
#define SID_CARG -3 /* for "-c" argument */
@@ -2329,6 +2329,12 @@ typedef enum {
# endif
#endif
+#ifdef FEAT_GUI_GTK
+# if !GTK_CHECK_VERSION(2,14,0)
+# define gtk_widget_get_window(wid) ((wid)->window)
+# endif
+#endif
+
#ifndef FEAT_NETBEANS_INTG
# undef NBDEBUG
#endif