aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-06-12 03:55:11 +0000
committernyamatongwe <unknown>2007-06-12 03:55:11 +0000
commit08c7f60bd016dd4b0b1c2131ce357524261ba1c0 (patch)
tree939a174842934e9db6cf437ff6d0f5cba27f8569
parentf0ae7daf36aa9e48b6cccddbee4e60cc9995e9d7 (diff)
downloadscintilla-mirror-08c7f60bd016dd4b0b1c2131ce357524261ba1c0.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);
}