Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 306827

Summary: [GTK] Snippet337 does not work
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: alfonso.munozpomer, dkonecny, ericwill, mountain14466
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard: stalebug

Description Grant Gayed CLA 2010-03-23 11:01:46 EDT
- works on win32 and Cocoa

- run Snippet337
- push its Button
- an SWT Shell is shown but its Browser is never populated

SSQ suggested it's likely an SWT/AWT problem.
Comment 1 Grant Gayed CLA 2010-03-23 11:58:11 EDT
Works fine on Linux-motif too.
Comment 2 Grant Gayed CLA 2010-03-24 10:26:07 EDT
Maybe swt's gtk implementation could change to more closely resemble its motif implementation, since the motif implementation works?
Comment 3 Alfonso Muñoz-Pomer CLA 2010-10-25 12:03:56 EDT
Hi, are there any news regarding this bug? I've also run into it and was wondering if there's any progress. Thanks.
Comment 4 Alfonso Muñoz-Pomer CLA 2010-10-25 12:08:50 EDT
As a sidenote I've tried building the snippet against the swt.jar provided in 	swt-3.6.1-motif-linux-x86.zip and in swt-3.7M1-gtk-linux-x86_64.zip with the same result.
Comment 5 David Konecny CLA 2011-12-06 19:42:21 EST
Call

  System.setProperty ( "sun.awt.xembedserver", "true" );

in the beginning of the snippet or your code and everything should work OK. Or at least on 64bit Ubuntu 11.10 it does.
Comment 6 Alfonso Muñoz-Pomer CLA 2011-12-06 19:57:00 EST
Thanks for the comment. I won't be able to try the solution you propose until next week, but I hope it works.
Comment 7 amos CLA 2011-12-15 20:09:06 EST
I found a workaround before.
1 add System.setProperty ( "sun.awt.xembedserver", "true" ) before your code;
2 If you want to add canvas into JPanel which is in JFrame, check you jdk version.If you use jdk-1.5version, it maybe not work on Linux. You can change it into 1.6.21
Comment 8 Eric Williams CLA 2016-11-24 16:44:29 EST
I can reproduce this issue.
Comment 9 Leo Ufimtsev CLA 2016-11-25 13:49:04 EST
Yea, reproducible with both webkit1 and webkit2. I haven't experimented if non-browser controls work.
Comment 10 Eclipse Genie CLA 2020-07-17 13:10:33 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.