From 0f8368b69dc3fd123dab6f0e06ec3f735fd14eb8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 13 Jul 2010 21:40:42 +1000 Subject: Platform files changed for new lexer design. --- gtk/ScintillaGTK.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index dfe0c2f8b..1c7dfd2ea 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -22,14 +23,11 @@ #include "windows.h" #endif +#include "ILexer.h" #include "Scintilla.h" #include "ScintillaWidget.h" #ifdef SCI_LEXER #include "SciLexer.h" -#include "PropSet.h" -#include "PropSetSimple.h" -#include "Accessor.h" -#include "KeyWords.h" #endif #include "SVector.h" #include "SplitVector.h" @@ -61,6 +59,7 @@ #ifdef SCI_LEXER #include #include +#include "LexerModule.h" #include "ExternalLexer.h" #endif @@ -830,7 +829,7 @@ sptr_t ScintillaGTK::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam #ifdef SCI_LEXER case SCI_LOADLEXERLIBRARY: - LexerManager::GetInstance()->Load(reinterpret_cast(lParam)); + LexerManager::GetInstance()->Load(reinterpret_cast(lParam)); break; #endif case SCI_TARGETASUTF8: @@ -2434,6 +2433,9 @@ GType scintilla_get_type() { void ScintillaGTK::ClassInit(OBJECT_CLASS* object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class) { Platform_Initialise(); +#ifdef SCI_LEXER + Scintilla_LinkLexers(); +#endif atomClipboard = gdk_atom_intern("CLIPBOARD", FALSE); atomUTF8 = gdk_atom_intern("UTF8_STRING", FALSE); atomString = GDK_SELECTION_TYPE_STRING; -- cgit v1.2.3