Re: [Sugar-devel] [PATCH] Bring back dragging of elements from the activities to the frame clipboard - SL #3819

2013-04-08 Thread Manuel Quiñones
2013/4/4 Manuel Quiñones ma...@laptop.org: 2013/4/4 Flavio Danesse fdane...@gmail.com: Actually if you for example: selection.get_uris (* args, ** kwargs) will return a list of uris in selection, so if no uris it will return an empty list, then do not even need to know what type of data is

[Sugar-devel] [PATCH] Bring back dragging of elements from the activities to the frame clipboard - SL #3819

2013-04-08 Thread Manuel Quiñones
TestCase: - open an activity like Browse, Read, Log (not Write, is a special case) - bring up the frame - drag things to the left side panel of the frame (images, links, or selected text) The elements should be added to the clipboard which is inside the panel. They should have the proper icon

[Sugar-devel] [PATCH] Bring back dragging of elements from the activities to the frame clipboard - SL #3819

2013-04-04 Thread Manuel Quiñones
TestCase: - open an activity like Browse, Read, Log (not Write, is a special case) - bring up the frame - drag things to the left side panel of the frame (images, links, or selected text) The elements should be added to the clipboard which is inside the panel. They should have the proper icon

Re: [Sugar-devel] [PATCH] Bring back dragging of elements from the activities to the frame clipboard - SL #3819

2013-04-04 Thread Flavio Danesse
Manuel, I think this code can be improved and greatly simplified if instead of using things like: selection_data.split uris = ('\ n') use: uris = selection.get_uris () Instead of using: selection.get_data (* args, ** kwargs) You can work directly on selection and get the data type with:

Re: [Sugar-devel] [PATCH] Bring back dragging of elements from the activities to the frame clipboard - SL #3819

2013-04-04 Thread Flavio Danesse
Actually if you for example: selection.get_uris (* args, ** kwargs) will return a list of uris in selection, so if no uris it will return an empty list, then do not even need to know what type of data is in selection. 2013/4/4 Flavio Danesse fdane...@gmail.com Manuel, I think this code can

Re: [Sugar-devel] [PATCH] Bring back dragging of elements from the activities to the frame clipboard - SL #3819

2013-04-04 Thread Manuel Quiñones
2013/4/4 Flavio Danesse fdane...@gmail.com: Actually if you for example: selection.get_uris (* args, ** kwargs) will return a list of uris in selection, so if no uris it will return an empty list, then do not even need to know what type of data is in selection. Excellent Flavio! I have to