Re: [Sugar-devel] [PATCH sugar] Fix drag and drop to the clipboard - SL #3811

2012-08-21 Thread Simon Schampijer
Hi Manuel, great you found a fix for this one! On 08/21/2012 07:03 AM, Manuel Quiñones wrote: 2012/8/21 Manuel Quiñones ma...@laptop.org: gtk.gdk.DragContext.get_source_widget returns None if the drag is not made within the same application. pygtk documentation for reference:

Re: [Sugar-devel] [PATCH sugar] Fix drag and drop to the clipboard - SL #3811

2012-08-21 Thread Manuel Quiñones
2012/8/21 Simon (erikos) Schampijer si...@laptop.org: Hi Manuel, great you found a fix for this one! On 08/21/2012 07:03 AM, Manuel Quiñones wrote: 2012/8/21 Manuel Quiñones ma...@laptop.org: gtk.gdk.DragContext.get_source_widget returns None if the drag is not made within the same

[Sugar-devel] [PATCH sugar] Fix drag and drop to the clipboard - SL #3811

2012-08-20 Thread Manuel Quiñones
gtk.gdk.DragContext.get_source_widget returns None if the drag is not made within the same application. This is enough test to say that it's not an internal drag. The gtk.Viewport comparison is left as fallback. Signed-off-by: Manuel Quiñones ma...@laptop.org ---

Re: [Sugar-devel] [PATCH sugar] Fix drag and drop to the clipboard - SL #3811

2012-08-20 Thread Manuel Quiñones
2012/8/21 Manuel Quiñones ma...@laptop.org: gtk.gdk.DragContext.get_source_widget returns None if the drag is not made within the same application. pygtk documentation for reference: http://www.pygtk.org/docs/pygtk/class-gdkdragcontext.html#method-gdkdragcontext--get-source-widget This is