[gtk+/gestures: 60/140] textview: remove superfluous GTK+ grabs



commit 71b4f56081145c1d1d62c1f3b050522f8856db04
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 8 20:23:43 2014 +0200

    textview: remove superfluous GTK+ grabs

 gtk/gtktextview.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 318818e..ffc1f50 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7104,10 +7104,6 @@ gtk_text_view_start_selection_drag (GtkTextView       *text_view,
     data->granularity = SELECT_CHARACTERS;
 
   priv->grab_device = button->device;
-  gtk_device_grab_add (GTK_WIDGET (text_view),
-                       priv->grab_device,
-                       TRUE);
-
   buffer = get_buffer (text_view);
   
   cursor = *iter;
@@ -7190,8 +7186,6 @@ gtk_text_view_end_selection_drag (GtkTextView *text_view)
       priv->scroll_timeout = 0;
     }
 
-  gtk_device_grab_remove (GTK_WIDGET (text_view),
-                          priv->grab_device);
   priv->grab_device = NULL;
 
   if (priv->magnifier_popover)


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