[gtk/dnd-gestures-2: 165/175] textview: Remove unnecessary drag highlighting
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 165/175] textview: Remove unnecessary drag highlighting
- Date: Wed, 8 Jan 2020 16:51:43 +0000 (UTC)
commit 6c5e04cca22fa4cb96d7134481dfd9589d1970f3
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 | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index d8e66113ab..ef96c57d08 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7735,8 +7735,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 +7745,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 +7811,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]