[gtk+/gestures: 61/117] textview: remove superfluous GTK+ grabs



commit 77dda394d77284c48ef240c67caf1e43d1e8794c
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 3194357..98b04d3 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -7113,10 +7113,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;
@@ -7199,8 +7195,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]