diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-21 20:33:26 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-22 01:18:06 +0100 |
commit | 8f0e72f0fedbfc8e4f26bff93472d0c1d59247df (patch) | |
tree | 054c98dc85e7f5024f84bce563f7023a3f1a19e1 /src/main.cpp | |
parent | ed98ca730773737e0e87e8e0a7984151adbd7805 (diff) | |
download | sciteco-8f0e72f0fedbfc8e4f26bff93472d0c1d59247df.tar.gz |
fixed margin configuration with GTK+ interface
* line-number style must be explicitly set, even after CLEARALLSTYLES
* margin widhts are in pixels (except in Scinterm), so we must determine the
pixels requiered by a number of digits (e.g. 5 digits)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index f7ce9a1..78e4daa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -203,13 +203,15 @@ main(int argc, char **argv) /* * FIXME: Default styles should probably be set interface-based - * (system defaults) and be changeable by TECO macros + * (system defaults) */ interface.ssm(SCI_STYLESETFORE, STYLE_DEFAULT, 0xFFFFFF); interface.ssm(SCI_STYLESETBACK, STYLE_DEFAULT, 0x000000); interface.ssm(SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Courier"); interface.ssm(SCI_STYLECLEARALL); + interface.ssm(SCI_STYLESETBACK, STYLE_LINENUMBER, 0x000000); + /* search string and status register */ QRegisters::globals.insert("_"); /* replacement string register */ |