aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-08-08 13:44:10 +0000
committernyamatongwe <unknown>2003-08-08 13:44:10 +0000
commit984da3cf6d3d54fd605f6fad64b61e2cadf38fe6 (patch)
tree6b68fa10b4056ed689cd2f02c5b7947e3af79819
parent357160456356ff748238e18f13ab6a3ee2d279c0 (diff)
downloadscintilla-mirror-984da3cf6d3d54fd605f6fad64b61e2cadf38fe6.tar.gz
Protected GTK+ 2 specific code from being compiled on GTK+ 1.
-rw-r--r--gtk/ScintillaGTK.cxx3
1 files changed, 3 insertions, 0 deletions
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)) {