[gtk+/gestures: 61/173] treeview: remove superfluous GTK+ grabs



commit 0539833a04fa462297db4c12bd7209d45bdf58c9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 8 20:24:30 2014 +0200

    treeview: remove superfluous GTK+ grabs

 gtk/gtktreeview.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index e765c78..83e9d85 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -3059,7 +3059,6 @@ gtk_tree_view_button_press (GtkWidget      *widget,
        {
          if (event->button == GDK_BUTTON_PRIMARY)
            {
-             gtk_grab_add (widget);
              tree_view->priv->button_pressed_node = tree_view->priv->prelight_node;
              tree_view->priv->button_pressed_tree = tree_view->priv->prelight_tree;
              gtk_tree_view_queue_draw_arrow (GTK_TREE_VIEW (widget),
@@ -3324,7 +3323,6 @@ gtk_tree_view_button_press (GtkWidget      *widget,
                                event->time) != GDK_GRAB_SUCCESS)
             return FALSE;
 
-          gtk_grab_add (widget);
           tree_view->priv->in_column_resize = TRUE;
 
          /* block attached dnd signal handler */
@@ -3450,7 +3448,6 @@ gtk_tree_view_button_release_column_resize (GtkWidget      *widget,
                                       drag_data);
 
   tree_view->priv->in_column_resize = FALSE;
-  gtk_grab_remove (widget);
   gdk_device_ungrab (gdk_event_get_device ((GdkEvent*)event), event->time);
   return TRUE;
 }
@@ -3514,7 +3511,6 @@ gtk_tree_view_button_release (GtkWidget      *widget,
           gtk_tree_path_free (path);
         }
 
-      gtk_grab_remove (widget);
       tree_view->priv->button_pressed_tree = NULL;
       tree_view->priv->button_pressed_node = NULL;
     }
@@ -4224,7 +4220,6 @@ static void
 gtk_tree_view_stop_rubber_band (GtkTreeView *tree_view)
 {
   remove_scroll_timeout (tree_view);
-  gtk_grab_remove (GTK_WIDGET (tree_view));
 
   if (tree_view->priv->rubber_band_status == RUBBER_BAND_ACTIVE)
     {
@@ -4573,7 +4568,6 @@ gtk_tree_view_motion_bin_window (GtkWidget      *widget,
 
   if (tree_view->priv->rubber_band_status == RUBBER_BAND_MAYBE_START)
     {
-      gtk_grab_add (GTK_WIDGET (tree_view));
       gtk_tree_view_update_rubber_band (tree_view);
 
       tree_view->priv->rubber_band_status = RUBBER_BAND_ACTIVE;
@@ -9911,8 +9905,6 @@ _gtk_tree_view_column_start_drag (GtkTreeView       *tree_view,
   gdk_device_ungrab (pointer, GDK_CURRENT_TIME);
   gdk_device_ungrab (keyboard, GDK_CURRENT_TIME);
 
-  gtk_grab_remove (button);
-
   send_event = gdk_event_new (GDK_LEAVE_NOTIFY);
   send_event->crossing.send_event = TRUE;
   send_event->crossing.window = g_object_ref (gtk_button_get_event_window (GTK_BUTTON (button)));


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