forked from AuroraMiddleware/gtk
Don't place dnd cursor in placeholder text
That is just misleading - the entire placeholder text is going to be replaced by the drop.
This commit is contained in:
parent
f824439137
commit
1293209d23
@ -8983,8 +8983,11 @@ gtk_entry_drag_motion (GtkWidget *widget,
|
||||
priv->dnd_position = -1;
|
||||
}
|
||||
|
||||
if (show_placeholder_text (entry))
|
||||
priv->dnd_position = -1;
|
||||
|
||||
gdk_drag_status (context, suggested_action, time);
|
||||
if (priv->dnd_position == -1)
|
||||
if (suggested_action == 0)
|
||||
gtk_drag_unhighlight (widget);
|
||||
else
|
||||
gtk_drag_highlight (widget);
|
||||
|
Loading…
Reference in New Issue
Block a user