diff options
author | 2008-06-15 14:14:58 -0400 | |
---|---|---|
committer | 2008-06-15 14:14:58 -0400 | |
commit | d741a151010a14da3fec3ba2a7279f46125d8db2 (patch) | |
tree | 2448c55d3651be69cd1bc6962005f36026dbc32d /src/properties.h | |
parent | 460847daf161c77c0b7621bb040c964302b72527 (diff) | |
download | textadept-d741a151010a14da3fec3ba2a7279f46125d8db2.tar.gz textadept-d741a151010a14da3fec3ba2a7279f46125d8db2.zip |
Eliminated build warnings.
Diffstat (limited to 'src/properties.h')
-rw-r--r-- | src/properties.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<long>(wParam), + reinterpret_cast<long>(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"); |