Community
Participate
Working Groups
Created attachment 228872 [details] Preferences Window screenshot on Resize How to reproduce: 1. Open Eclipse with GTK+ 3 2. Try to resize Preferences window (I have attached screen-shot what happens after I try to resize even by a bit Preferences window)
(In reply to comment #0) > Created attachment 228872 [details] > Preferences Window screenshot on Resize > > How to reproduce: > > 1. Open Eclipse with GTK+ 3 > 2. Try to resize Preferences window > > (I have attached screen-shot what happens after I try to resize even by a > bit Preferences window) The same issue can be seen in the following windows: Project -> Generate Javadoc Project -> Properties Help -> Eclipse MarketPlace Help -> Install New Software Window -> Customize Perspective
(In reply to comment #1) > (In reply to comment #0) > > Created attachment 228872 [details] > > Preferences Window screenshot on Resize > > > > How to reproduce: > > > > 1. Open Eclipse with GTK+ 3 > > 2. Try to resize Preferences window > > > > (I have attached screen-shot what happens after I try to resize even by a > > bit Preferences window) > > The same issue can be seen in the following windows: > > Project -> Generate Javadoc > Project -> Properties > Help -> Eclipse MarketPlace > Help -> Install New Software > Window -> Customize Perspective Here is the snippet that shows the problem (from my initial research, I think that problem could be in how pack() calculates size): import org.eclipse.swt.widgets.*; public class testResize { public static void main (String [] args) { Display display = new Display (); final Shell shell = new Shell (display); final Shell dialog = new Shell(shell, SWT.RESIZE); dialog.setText ("Dialog"); dialog.setSize(500,500); dialog.setLayout(new FillLayout()); final Tree tree = new Tree (shell, SWT.BORDER); for (int i=0; i<4; i++) { TreeItem iItem = new TreeItem (tree, 0); iItem.setText ("TreeItem (0) -" + i); for (int j=0; j<4; j++) { TreeItem jItem = new TreeItem (iItem, 0); jItem.setText ("TreeItem (1) -" + j); for (int k=0; k<4; k++) { TreeItem kItem = new TreeItem (jItem, 0); kItem.setText ("TreeItem (2) -" + k); for (int l=0; l<4; l++) { TreeItem lItem = new TreeItem (kItem, 0); lItem.setText ("TreeItem (3) -" + l); } } } } dialog.pack(); dialog.open(); while (!dialog.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
This also happens on Eclipse 4.2.2 (on Fedora 18).
(In reply to comment #2) > > Here is the snippet that shows the problem (from my initial research, I > think that problem could be in how pack() calculates size): The snippet looks old. The shell the has the tree is not shown and the dialog is empty (no children), so it packs to a very small size. How do I get it to show the actual problem?
(In reply to comment #3) > This also happens on Eclipse 4.2.2 (on Fedora 18). Eclipse 4.2.2 does not run on GTK3. So is this a problem on the GTK2 build?
I don't know whether it runs on GTK2 or GTK3, I simply use the eclipse that is packaged with Fedora 18. There is only one version available there. And I get the exact same behaviour as originally described here.
I basically assumed that Eclipse was running on GTK3 because Fedora 18 uses Gnome 3. I see now indeed on the www.eclipse.org page that there are only GTK2 builds, so presumably the Fedora build indeed uses GTK2. If the current bug report should only be used for the GTK3 build and I need to make a separate bug report, let me know. But since I had the exact same symptom, it made sense for me to add a comment here.
orion_verthezp:~$ rpm -q --whatrequires gtk2 [...] eclipse-swt-4.2.2-5.fc18.x86_64 So that's confirmed then.
(In reply to comment #4) > (In reply to comment #2) > > > > Here is the snippet that shows the problem (from my initial research, I > > think that problem could be in how pack() calculates size): > > The snippet looks old. The shell the has the tree is not shown and the > dialog is empty (no children), so it packs to a very small size. How do I > get it to show the actual problem? To reproduce the problem: 1. Run Eclipse + GTK3 2. Go to Preferences Window 3. Try to resize Preferences Window When I try to resize Preferences Window, it shrinks to minimum size right away.
(In reply to comment #8) > orion_verthezp:~$ rpm -q --whatrequires gtk2 > [...] > eclipse-swt-4.2.2-5.fc18.x86_64 > > So that's confirmed then. Eclipse 4.2.2 only runs on GTK2. In order to run Eclipse on GTK3, you need the latest 4.3 build and you have to enable it by exporting SWT_GTK3 env var before running eclipse. export SWT_GTK3=1
I don't care about running Eclipse on GTK3. I added a comment here because I had the same problem as the original description with the Eclipse 4.2.2 that is provided in Fedora 18. Whether that is on GTK2 or GTK3 I couldn't care less.
(In reply to comment #11) > I don't care about running Eclipse on GTK3. > > I added a comment here because I had the same problem as the original > description with the Eclipse 4.2.2 that is provided in Fedora 18. Whether > that is on GTK2 or GTK3 I couldn't care less. Yes, I understand and I am just trying to say that this problem is not specific to GTK3 since you can reproduce it in Eclipse 4.2.2.
I cannot reproduce this problem anywhere. Tried Eclipse 4.2.2 and latest 4.3 on Fedora 17, Fedora 18 and Ubuntu 12.04. Any other steps I might be missing? Does it happen all the time for you?
I simply open the Window->Preferences dialog and when trying to resize it immediately collapses. For me it's 100% reproducible. The only more or less special thing on my machine is that it's 64-bit, but could that affect this?
(In reply to comment #13) > I cannot reproduce this problem anywhere. Tried Eclipse 4.2.2 and latest 4.3 > on Fedora 17, Fedora 18 and Ubuntu 12.04. > > Any other steps I might be missing? Does it happen all the time for you? If it will help: I have updated my system (Fedora 18) which updated bunch of package including GTK and the problem is gone.I cannot reproduce it anymore. Basing on this, I think that the problem lies in GTK itself not in the SWT.
Unfortunately I cannot confirm that. I'm fully updated to the latest packages of Fedora 18, and I still see the problem.
No longer seems to happen here either (Fedora 19 and Eclipse 4.3).
Can someone still reproduce this? I can't reproduce anymore. If noone else can I would close the bug.
With the current up-to-date Fedora 18, I can also not reproduce it anymore.
As per users reports marking as fixed.
I'm having this problem on Eclipse Kepler Version: 4.3.2 Build id: 3fc20, and Fedora 20. I get it when I go to Help->Install New Software->already installed and try to resize the screen to show me what's already installed. Is there any way I can reset the screen?
Hello Karl, I tested with Luna 4.4.2, it does occur for me in gtk2/gtk3 on Fedora 20. However, I then tested with Eclipse Mars and the issue is fixed. For the time being, I recommend grabbing the bottom-right corner of the preference window and resize it that way. That works for me.
AFAIK I'm on GTK 3, but after two OS updates and several reboots I cannot reproduce the problem any longer. Thanks for the reply.