diff options
author | nyamatongwe <devnull@localhost> | 2003-08-08 13:44:10 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-08-08 13:44:10 +0000 |
commit | 60b0af4bde6ddf7c6959b34e87fe40c312741ba4 (patch) | |
tree | 6b68fa10b4056ed689cd2f02c5b7947e3af79819 | |
parent | cba2e9b02804a24cb7b065db6facbd9e256db143 (diff) | |
download | scintilla-mirror-60b0af4bde6ddf7c6959b34e87fe40c312741ba4.tar.gz |
Protected GTK+ 2 specific code from being compiled on GTK+ 1.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 3 |
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)) { |