aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-10-11 02:31:54 +0000
committernyamatongwe <devnull@localhost>2002-10-11 02:31:54 +0000
commit731f5cf265f665abdd011f8d3b4c218cd43d289f (patch)
tree8c6cee5d0742515307829140dd2d4b5f993fa87c /gtk/ScintillaGTK.cxx
parenta87f3d84a4930bbb22ad8caa83b43c1569bfd7c9 (diff)
downloadscintilla-mirror-731f5cf265f665abdd011f8d3b4c218cd43d289f.tar.gz
Patch from Shane that adds a font cache on GTK+.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 349a98292..3c87be91c 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1615,10 +1615,14 @@ sptr_t scintilla_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_
static void scintilla_class_init (ScintillaClass *klass);
static void scintilla_init (ScintillaObject *sci);
+extern void Platform_Initialise();
+extern void Platform_Finalise();
+
guint scintilla_get_type() {
static guint scintilla_type = 0;
if (!scintilla_type) {
+ Platform_Initialise();
static GtkTypeInfo scintilla_info = {
"Scintilla",
sizeof (ScintillaObject),
@@ -1731,3 +1735,8 @@ void scintilla_set_id(ScintillaObject *sci, int id) {
ScintillaGTK *psci = reinterpret_cast<ScintillaGTK *>(sci->pscin);
psci->ctrlID = id;
}
+
+void scintilla_release_resources(void) {
+ Platform_Finalise();
+}
+