Bug 210729 - [64] drag&drop into tabfolder not possible
Summary: [64] drag&drop into tabfolder not possible
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-11-23 04:42 EST by mail CLA
Modified: 2008-02-06 18:04 EST (History)
0 users

See Also:


Attachments
snippet that demonstrates the bug (2.50 KB, text/plain)
2007-11-23 04:42 EST, mail CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.