From 08c7f60bd016dd4b0b1c2131ce357524261ba1c0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 12 Jun 2007 03:55:11 +0000 Subject: Protection from calling GTK+ 2 functions on GTK+ 1. --- gtk/ScintillaGTK.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(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); } -- cgit v1.2.3