From 8f0e72f0fedbfc8e4f26bff93472d0c1d59247df Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 21 Feb 2013 20:33:26 +0100 Subject: 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) --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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 */ -- cgit v1.2.3