From d741a151010a14da3fec3ba2a7279f46125d8db2 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 15 Jun 2008 14:14:58 -0400 Subject: Eliminated build warnings. --- src/properties.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/properties.h') diff --git a/src/properties.h b/src/properties.h index 0ea11a2e..1d7d8b50 100644 --- a/src/properties.h +++ b/src/properties.h @@ -5,6 +5,12 @@ #include "textadept.h" +static long SSS(ScintillaObject *sci, unsigned int msg, const char *wParam=0, + const char *lParam=0) { + return scintilla_send_message(sci, msg, reinterpret_cast(wParam), + reinterpret_cast(lParam)); +} + #define sp(k, v) SSS(sci, SCI_SETPROPERTY, k, v) #define color(r, g, b) r | (g << 8) | (b << 16) @@ -13,6 +19,7 @@ * @param sci The Scintilla window to set default properties for. */ void set_default_editor_properties(ScintillaObject *sci) { + sp("textadept.home", textadept_home); sp("lexer.lua.home", "/usr/share/textadept/lexers/"); sp("lexer.lua.script", "/usr/share/textadept/lexers/lexer.lua"); -- cgit v1.2.3