Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 223486 - Drag and drop fails for Linux/GTK with target in ExpandBar / ExpandItem
Summary: Drag and drop fails for Linux/GTK with target in ExpandBar / ExpandItem
Status: CLOSED DUPLICATE of bug 454940
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Linux-GTK
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 211887 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-21 08:00 EDT by Jacek Sieka CLA
Modified: 2015-04-30 12:24 EDT (History)
5 users (show)

See Also:


Attachments
Snippet showing error (2.81 KB, text/x-java)
2008-03-21 08:00 EDT, Jacek Sieka CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Sieka CLA 2008-03-21 08:00:47 EDT
Created attachment 93122 [details]
Snippet showing error

Build ID:  M20080221-1800

Steps To Reproduce:
The attached snippet works on windows but not on linux/gtk x86_64.
When dropping the text from source onto "Drag target 1" it should change to "Dropped 1" - on windows it works.
Dropping on "Drag target 2" works as expected both on windows and linux/gtk.

More information:
Comment 1 Steve Northover CLA 2008-04-11 17:20:15 EDT
Strange.  It only fails on 64-bit?
Comment 2 Jacek Sieka CLA 2008-04-11 17:26:50 EDT
I don't know - I don't have a 32-bit gtk to test on...
(for the record, "drop target 1" is in an expander while "drop target 2" is not...)
Comment 3 Steve Northover CLA 2008-04-14 10:25:02 EDT
Duong, this is really a drag and drop bug that happens on 64-bit.  Can you confirm that it works in 32-bit?

Jacek, can you get the latest nightly Eclipse and see whether the problem is already fixed for 3.4?
Comment 4 Grant Gayed CLA 2008-04-14 11:37:36 EDT
With the latest swt I'm able to drop on Drop Targets 1 and 2 successfully, on 32-bit and 64-bit.  I'm not able to drop on the "eitem" on any of the platforms (including win32) but I don't think this is the problem of this report.

I'm using gtk 2.4.13.  Which gtk version are you using?
Comment 5 Steve Northover CLA 2008-04-14 11:47:00 EDT
Please get Bogdan to try it out using his GTK farm.
Comment 6 Jacek Sieka CLA 2008-04-14 12:03:14 EDT
Nightly N20080413-2000 and integration I20080410-1022 give: 
Exception in thread "main" java.lang.NoSuchMethodError: emissionProc
	at org.eclipse.swt.internal.Callback.bind(Native Method)
	at org.eclipse.swt.internal.Callback.<init>(Callback.java:117)
	at org.eclipse.swt.internal.Callback.<init>(Callback.java:72)
	at org.eclipse.swt.internal.Callback.<init>(Callback.java:54)
	at org.eclipse.swt.widgets.Display.initializeCallbacks(Display.java:2475)
	at org.eclipse.swt.widgets.Display.init(Display.java:2298)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:153)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:469)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:460)
	at Snippet79.main(Snippet79.java:59)

doesn't look related, and most of the swt nightlies available at the download page look horribly borked so I can't really test this...

I can reproduce this now with I'm running gnome 2.22.1, gtk 2.12.9, xorg 1.4.0.90, when I reported the bug I was still running gnome 2.20.x and gtk...hm...2.12.5 or 2.12.7...

And you're right, it's not the eitem, it's the label inside it once you expand that doesn't work...
Comment 7 Grant Gayed CLA 2008-04-14 12:19:28 EDT
re: NoSuchMethodError
There were changes recently that were not marked up for 64-bit.  I fixed these this morning, which is how I tested the latest on 64-bit.

Anyways, I tried the snippet with the latest swt on BG's 32-bit gtk 2.12.5 and I now see the problem, so it's not 64-bit specific.  Moving to DN.
Comment 8 Praveen CLA 2009-12-24 03:11:32 EST
*** Bug 211887 has been marked as a duplicate of this bug. ***
Comment 9 Leo Ufimtsev CLA 2015-04-30 12:24:56 EDT
Already fixed this one. I re-tested the snippet, now all works in Gtk3/Gtk2.

*** This bug has been marked as a duplicate of bug 454940 ***