GNOME Bugzilla – Bug 725866
DnD fixes
Last modified: 2014-03-07 04:20:31 UTC
Lately, not sure when, GtkEntry lost the ability to render the cursor at the position the text would be dropped on DnD operations. I also came to notice that DnD has an offset when done on any GtkEntry with an icon on its left, apparently the DnD code doesn't compensate for icons in widget coordinates. I'm adding two patches to fix these buglets.
Created attachment 271160 [details] [review] entry: use priv->dnd_position when rendering the DND cursor This makes "cursor position" track the DnD point again, looks much more intuitive than just rendering it on the pre-DnD position.
Created attachment 271161 [details] [review] entry: Make DnD coordinate calculation compensate for entry icons This made DnD have effect farther on the left when dragging text over any entry with icons in it.
Attachment 271160 [details] pushed as adf39dd - entry: use priv->dnd_position when rendering the DND cursor Attachment 271161 [details] pushed as 43b0eee - entry: Make DnD coordinate calculation compensate for entry icons