Community
Participate
Working Groups
Build Identifier: 20110615-0604 The Show whitespace characters preference in the text editors preference page looks misaligned under GTK3. I think this is because setText wasn't called on the check box. Reproducible: Always Steps to Reproduce: 1. Running GTK3 2. Open the Text Editors preference page 3. observe that the Show Whitespace preference is indented slightly more than other items 4. Clicking on the checkbox also shows a little rectangle next to the check box where the text would normally go.
I will take a look.
Yeah, on the Mac it's even worse. This happens because a checkbox label cannot contain links, so we fake the widget using two. The problem is that we don't know where the OS starts drawing text next to a checkbox. We either need API for this from SWT, or we could try to make an educated guess like this: - create a checkbox c with text "a" - create a label l with text "a" => right indent is close to c.computeSize(DEFAULT, DEFAULT) - l.computeSize(DEFAULT, DEFAULT)
Fixed in TextEditorDefaultsPreferencePage and OptionsConfigurationBlock. The strategy in comment 2 didn't work, since each platform has its own peculiarities. In the end, I used platform-specific offsets.