summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-12-17 10:52:33 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-12-17 10:52:33 -0500
commit1293209d2360e8975fc5895067f684c77a3c52b8 (patch)
tree45be82bff0e526f88d349633466a747b512058ff /gtk/gtkentry.c
parentf824439137920bd9cca430ff2835aac1120848fe (diff)
downloadgtk+-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.c5
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);