Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 440116 - [GTK3] FormToolkit text widgets have double border (FormToolkit#createText)
Summary: [GTK3] FormToolkit text widgets have double border (FormToolkit#createText)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 413889 (view as bug list)
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2014-07-22 10:15 EDT by Robin Stocker CLA
Modified: 2017-07-18 01:48 EDT (History)
6 users (show)

See Also:


Attachments
Mylyn task editor double borders (5.63 KB, image/png)
2015-02-26 07:55 EST, Robert Munteanu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Stocker CLA 2014-07-22 10:15:41 EDT
Text fields created with FormToolkit#createText have an additional border with GTK 3. Compare (in the second screenshot, see "5"):

GTK 2: https://bugs.eclipse.org/bugs/attachment.cgi?id=237910
GTK 3: https://bugs.eclipse.org/bugs/attachment.cgi?id=237912

Originally reported in bug 422940.
Comment 1 Robin Stocker CLA 2014-07-22 10:18:19 EDT
This is with GTK 3.10.9 and Eclipse 4.4.0 started with SWT_GTK3=1.
Comment 2 Alexander Kurtakov CLA 2014-07-22 10:25:10 EDT
Oops I missed this one.
Comment 3 Alexander Kurtakov CLA 2014-07-22 11:07:02 EDT
Issue seems to happen only when FormToolkit.paintBordersFor is used or BorderPainter is involved.
Comment 4 Robert Munteanu CLA 2015-02-26 07:53:43 EST
Still seeing this with Eclipse Mars M5  in the Mylyn task editor and m2eclipse pom.xml editor.
Comment 5 Robert Munteanu CLA 2015-02-26 07:55:33 EST
Created attachment 251133 [details]
Mylyn task editor double borders
Comment 6 Snjezana Peco CLA 2015-11-02 11:15:30 EST
This is a GTK3 issue fixed in GTK3 >= 3.16.x.
GTK3 < 3.16 ignores the OS.gtk_entry_set_has_frame method.
It is possible to create a workaround for this bug or bug 413889 by creating a text field with the SWT.MULTI flag, but I think we can't fix the issue in SWT (SWT.MULTI and SWT.PASSWORD aren't compatible, for instance).
Comment 7 Snjezana Peco CLA 2015-11-02 11:16:33 EST
*** Bug 413889 has been marked as a duplicate of this bug. ***
Comment 8 Alexander Kurtakov CLA 2016-12-22 04:46:01 EST
Can you still reproduce this one?
Comment 9 Alexander Kurtakov CLA 2017-07-18 01:48:32 EDT
No reply for months and issue has been fixed or at least not happening for people involved. Resolving. Please reopen if you still face with details to reproduce.