aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-06-12 03:55:11 +0000
committernyamatongwe <devnull@localhost>2007-06-12 03:55:11 +0000
commitdeae1c2bff572a88e63c57d10fb430bd260d9988 (patch)
tree939a174842934e9db6cf437ff6d0f5cba27f8569
parent6eeafe15d0ce0cbb195f8c2ba15311192462f04c (diff)
downloadscintilla-mirror-deae1c2bff572a88e63c57d10fb430bd260d9988.tar.gz
Protection from calling GTK+ 2 functions on GTK+ 1.
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 4f9ec6e14..5475a1c2e 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -782,6 +782,7 @@ void ScintillaGTK::Initialise() {
GTK_DEST_DEFAULT_ALL, clipboardPasteTargets, nClipboardPasteTargets,
static_cast<GdkDragAction>(GDK_ACTION_COPY | GDK_ACTION_MOVE));
+#if GLIB_MAJOR_VERSION >= 2
// Set caret period based on GTK settings
gboolean blinkOn = false;
if (g_object_class_find_property(G_OBJECT_GET_CLASS(
@@ -799,6 +800,7 @@ void ScintillaGTK::Initialise() {
} else {
caret.period = 0;
}
+#endif
SetTicking(true);
}