diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-17 10:52:33 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-12-17 10:52:33 -0500 |
commit | 1293209d2360e8975fc5895067f684c77a3c52b8 (patch) | |
tree | 45be82bff0e526f88d349633466a747b512058ff /gtk/gtkentry.c | |
parent | f824439137920bd9cca430ff2835aac1120848fe (diff) | |
download | gtk+-1293209d2360e8975fc5895067f684c77a3c52b8.tar.gz |
Don't place dnd cursor in placeholder text
That is just misleading - the entire placeholder text is going
to be replaced by the drop.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index df603b9076..88c9537e7e 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -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); |