Bug 210729

Summary: [64] drag&drop into tabfolder not possible
Product: [Eclipse Project] Platform Reporter: mail
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 Keywords: needinfo
Version: 3.3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
snippet that demonstrates the bug none

Description mail CLA 2007-11-23 04:42:56 EST
Created attachment 83611 [details]
snippet that demonstrates the bug

drag&drop into an item of a tabfolder is not possible on linux-gtk x86-64.
it works properly on win 32 and linux 32.

the snippet attached demonstrates this behaviour.
it is a variant of snippet78 where 2 labels within a
tabfolder were added.
you can drag the text between the labels outside the 
tabfolder but not into it.
it works on win32 but not on linux-gtk-x86-64

the major diff to Snippet78 is:
33a35,45
>   //
>   TabFolder f = new TabFolder(shell, SWT.NONE);
>   TabItem t1 = new TabItem(f, SWT.NONE);
>   t1.setText("Tab 1");
>   TabItem t2 = new TabItem(f, SWT.NONE);
>   t2.setText("Tab 2");
>   Label l1 = new Label (f, SWT.BORDER);
>   Label l2 = new Label (f, SWT.BORDER);
>   t1.setControl(l1);
>   t2.setControl(l2);
36c48,51
<       shell.setSize (200, 200);
---
>       setDragDrop (l1);
>       setDragDrop (l2);
>       shell.setSize (400, 200);
Comment 1 Grant Gayed CLA 2007-11-23 12:40:59 EST
Your snippet works for me on 32-bit and 64-bit gtk, so maybe it's dependent on your gtk version.  What are the gtk versions on your 32-bit and 64-bit machines?  And in the 64-bit case, does your DropTargetListener.drop() get called with a null event.data, or does it not get called at all?
Comment 2 Grant Gayed CLA 2008-02-06 18:04:07 EST
Timed out, closing.  Please reopen this report if you have more info.