[gtk/dnd-gestures-2: 158/173] textview: Remove unnecessary drag highlighting



commit 4fe571045659f2a65d322d3a90a146e7e9e3443f
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 18:19:06 2020 -0500

    textview: Remove unnecessary drag highlighting
    
    GTK does this unconditionally anyway, now.

 gtk/gtktextview.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index d8e66113ab..1013c734d8 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7725,7 +7725,6 @@ gtk_text_view_drag_leave (GtkDropTarget *dest,
                           GtkTextView   *text_view)
 {
   GtkTextViewPrivate *priv = text_view->priv;
-  GtkWidget *widget = GTK_WIDGET (text_view);
 
   gtk_text_mark_set_visible (priv->dnd_mark, FALSE);
 
@@ -7735,8 +7734,6 @@ gtk_text_view_drag_leave (GtkDropTarget *dest,
     g_source_remove (priv->scroll_timeout);
 
   priv->scroll_timeout = 0;
-
-  gtk_drag_unhighlight (widget);
 }
 
 static gboolean
@@ -7747,7 +7744,6 @@ gtk_text_view_drag_motion (GtkDropTarget *dest,
 {
   GtkTextViewPrivate *priv = text_view->priv;
   GdkDrop *drop = gtk_drop_target_get_drop (dest);
-  GtkWidget *widget = GTK_WIDGET (text_view);
   GtkTextIter newplace;
   GtkTextIter start;
   GtkTextIter end;
@@ -7814,8 +7810,6 @@ gtk_text_view_drag_motion (GtkDropTarget *dest,
     g_source_set_name_by_id (text_view->priv->scroll_timeout, "[gtk] drag_scan_timeout");
   }
 
-  gtk_drag_highlight (widget);
-
   /* TRUE return means don't propagate the drag motion to parent
    * widgets that may also be drop sites.
    */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]