[gtk/dnd-gestures-2: 164/175] text: Remove unnecessary drag highlighting



commit addb9b8e49409c008aa22e01c00523ade5a4f55a
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]