From 984da3cf6d3d54fd605f6fad64b61e2cadf38fe6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 8 Aug 2003 13:44:10 +0000 Subject: Protected GTK+ 2 specific code from being compiled on GTK+ 1. --- gtk/ScintillaGTK.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index f5a630be7..50f743f1d 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -859,6 +859,8 @@ void ScintillaGTK::NotifyURIDropped(const char *list) { } const char *CharacterSetID(int characterSet); +#if GTK_MAJOR_VERSION >= 2 + #define IS_ACC(x) \ ((x) >= 65103 && (x) <= 65111) #define IS_CHAR(x) \ @@ -906,6 +908,7 @@ static int MakeAccent(int key, int acc) { } return key; } +#endif int ScintillaGTK::KeyDefault(int key, int modifiers) { if (!(modifiers & SCI_CTRL) && !(modifiers & SCI_ALT)) { -- cgit v1.2.3