Bug 3140 - [GTK] Issues with drag icon
Summary: [GTK] Issues with drag icon
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-01-30 11:30 UTC by Lluis Sanchez
Modified: 2014-03-06 14:37 UTC (History)
3 users (show)

Tags: gtk
Is this bug a regression?: ---
Last known good build:


Attachments
patch which fixes issues 1) and 2) (1.94 KB, patch)
2012-04-22 11:24 UTC, Kristian Rietveld (inactive)
Details
patch which fixes issue 3) (996 bytes, patch)
2012-04-22 11:24 UTC, Kristian Rietveld (inactive)
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 3140 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Lluis Sanchez 2012-01-30 11:30:29 UTC
This is a Gtk/Mac bug. When starting a drag & drop of an item in a tree view or in any other widget, there are 3 problems:

1) Sometimes, the drag icon is temporarily shown in an incorrect position. See for example http://screencast.com/t/PCMnayFB88wB. When starting the drag, the drag icon is shown just below the ComboBox.cs item, and then jumps to the mouse position.
2) When the drag & drop is cancelled, the drag icon should bounce back to the initial drag position, but instead it goes to a different position. This can also be seen in the above screencast.
3) Gtk/Mac ignores the hot_x and hot_y arguments when calling gtk_drag_set_icon_pixbuf. In the above screencast, the icon should be placed below the cursor, not above.
Comment 1 Kristian Rietveld (inactive) 2012-04-11 16:50:48 UTC
I can definitely confirm 1) and 2).  I haven't explicitly tested 3) yet.  I will be looking into fixing these issues.
Comment 2 Kristian Rietveld (inactive) 2012-04-22 11:24:17 UTC
Created attachment 1724 [details]
patch which fixes issues 1) and 2)
Comment 3 Kristian Rietveld (inactive) 2012-04-22 11:24:36 UTC
Created attachment 1725 [details]
patch which fixes issue 3)
Comment 4 Kristian Rietveld (inactive) 2012-04-22 11:25:19 UTC
These patches make testtreeview behave like on X11 for me.  They have already been upstreamed into the gtk-2-24 branch, they will appear in master and gtk-3-4 too at some point.
Comment 5 Kristian Rietveld (inactive) 2012-04-22 11:46:24 UTC
For the record, for GTK+ 3.x, the second patch which fixes the hot spot position is not necessary.