[gtk/dnd-gestures-2: 157/173] text: Remove unnecessary drag highlighting
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 157/173] text: Remove unnecessary drag highlighting
- Date: Thu, 9 Jan 2020 00:02:07 +0000 (UTC)
commit ac5b4a63075d0d130be559efbed8e23fae5f0709
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 7 18:18:43 2020 -0500
text: Remove unnecessary drag highlighting
GTK does this unconditionally anyway, now.
gtk/gtktext.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 2c6d77055b..0da58dd715 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]