forked from AuroraMiddleware/gtk
text: Remove unnecessary drag highlighting
GTK does this unconditionally anyway, now.
This commit is contained in:
parent
5ce7bfbbd8
commit
ac5b4a6307
@ -6129,7 +6129,6 @@ gtk_text_drag_leave (GtkDropTarget *dest,
|
||||
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
|
||||
GtkWidget *widget = GTK_WIDGET (self);
|
||||
|
||||
gtk_drag_unhighlight (widget);
|
||||
priv->dnd_position = -1;
|
||||
gtk_widget_queue_draw (widget);
|
||||
}
|
||||
@ -6265,10 +6264,6 @@ gtk_text_drag_motion (GtkDropTarget *dest,
|
||||
}
|
||||
|
||||
gdk_drop_status (drop, suggested_action);
|
||||
if (suggested_action == 0)
|
||||
gtk_drag_unhighlight (widget);
|
||||
else
|
||||
gtk_drag_highlight (widget);
|
||||
|
||||
if (priv->dnd_position != old_position)
|
||||
gtk_widget_queue_draw (widget);
|
||||
|
Loading…
Reference in New Issue
Block a user