[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-82-g44a06b7

ticho at claws-mail.org ticho at claws-mail.org
Thu Feb 15 18:14:57 CET 2018


The branch, gtk3 has been updated
       via  44a06b793270ab026289759ae56ffa3a76a54a53 (commit)
      from  159dafab379452a4495a852939c38e69feae3f2e (commit)

Summary of changes:
 src/gtk/gtkcmclist.c |   17 -----------------
 src/gtk/gtkcmctree.c |   12 ------------
 src/gtk/gtksctree.c  |    4 ----
 3 files changed, 33 deletions(-)


- Log -----------------------------------------------------------------
commit 44a06b793270ab026289759ae56ffa3a76a54a53
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Feb 15 18:10:35 2018 +0100

    Remove low-level grab handling from GtkCMC widgets, they aren't needed.

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index 0160713..81f8c78 100644
--- a/src/gtk/gtkcmclist.c
+++ b/src/gtk/gtkcmclist.c
@@ -2040,9 +2040,6 @@ abort_column_resize (GtkCMCList *clist)
     return;
 
   GTK_CMCLIST_UNSET_FLAG (clist, CMCLIST_IN_DRAG);
-  gtk_grab_remove (GTK_WIDGET (clist));
-  gdk_display_pointer_ungrab (gtk_widget_get_display (GTK_WIDGET (clist)),
-			      GDK_CURRENT_TIME);
   clist->drag_pos = -1;
 
   if (clist->x_drag >= 0 && clist->x_drag <= clist->clist_window_width - 1)
@@ -5076,8 +5073,6 @@ gtk_cmclist_button_press (GtkWidget      *widget,
 	      if (gdk_pointer_grab (clist->clist_window, FALSE, mask,
 				    NULL, NULL, event->time))
 		return FALSE;
-	      gtk_grab_add (widget);
-
 	      clist->click_cell.row = row;
 	      clist->click_cell.column = column;
 	      clist->drag_button = event->button;
@@ -5219,7 +5214,6 @@ gtk_cmclist_button_press (GtkWidget      *widget,
 			      NULL, NULL, event->time))
 	  return FALSE;
 
-	gtk_grab_add (widget);
 	GTK_CMCLIST_SET_FLAG (clist, CMCLIST_IN_DRAG);
 
 	/* block attached dnd signal handler */
@@ -5276,8 +5270,6 @@ gtk_cmclist_button_release (GtkWidget      *widget,
 
       GTK_CMCLIST_UNSET_FLAG (clist, CMCLIST_IN_DRAG);
       gtk_widget_get_pointer (widget, &x, NULL);
-      gtk_grab_remove (widget);
-      gdk_display_pointer_ungrab (gtk_widget_get_display (widget), event->time);
 
       if (clist->x_drag >= 0)
 	clist_refresh(clist);
@@ -7228,15 +7220,6 @@ remove_grab (GtkCMCList *clist)
 {
   GtkWidget *widget = GTK_WIDGET (clist);
   
-  if (gtk_widget_has_grab (widget))
-    {
-      GdkDisplay *display = gtk_widget_get_display (widget);
-      
-      gtk_grab_remove (widget);
-      if (gtkut_pointer_is_grabbed (widget))
-	gdk_display_pointer_ungrab (display, GDK_CURRENT_TIME);
-    }
-
   if (clist->htimer)
     {
       g_source_remove (clist->htimer);
diff --git a/src/gtk/gtkcmctree.c b/src/gtk/gtkcmctree.c
index f620d87..513fdb1 100644
--- a/src/gtk/gtkcmctree.c
+++ b/src/gtk/gtkcmctree.c
@@ -1878,10 +1878,6 @@ change_focus_row_expansion (GtkCMCTree          *ctree,
 
   clist = GTK_CMCLIST (ctree);
 
-  if (gtkut_pointer_is_grabbed (GTK_WIDGET (ctree)) && 
-      gtk_widget_has_grab (GTK_WIDGET(ctree)))
-    return;
-  
   if (!(node =
 	GTK_CMCTREE_NODE (g_list_nth (clist->row_list, clist->focus_row))) ||
       GTK_CMCTREE_ROW (node)->is_leaf || !(GTK_CMCTREE_ROW (node)->children))
@@ -4108,14 +4104,6 @@ gtk_cmctree_node_set_shift (GtkCMCTree     *ctree,
 static void
 remove_grab (GtkCMCList *clist)
 {
-  if (gtkut_pointer_is_grabbed (GTK_WIDGET (clist)) && 
-      gtk_widget_has_grab (GTK_WIDGET(clist)))
-    {
-      gtk_grab_remove (GTK_WIDGET (clist));
-      gdk_display_pointer_ungrab (gtk_widget_get_display (GTK_WIDGET (clist)),
-				  GDK_CURRENT_TIME);
-    }
-
   if (clist->htimer)
     {
       g_source_remove (clist->htimer);
diff --git a/src/gtk/gtksctree.c b/src/gtk/gtksctree.c
index 58426f9..0b36ab2 100644
--- a/src/gtk/gtksctree.c
+++ b/src/gtk/gtksctree.c
@@ -163,10 +163,6 @@ gtk_sctree_change_focus_row_expansion (GtkCMCTree          *ctree,
 
   clist = GTK_CMCLIST (ctree);
 
-  if (gtkut_pointer_is_grabbed (GTK_WIDGET (ctree)) && 
-      gtk_widget_has_grab (GTK_WIDGET(ctree)))
-    return;
-  
   if (!(node =
 	GTK_CMCTREE_NODE (g_list_nth (clist->row_list, clist->focus_row))) ||
       GTK_CMCTREE_ROW (node)->is_leaf || !(GTK_CMCTREE_ROW (node)->children))

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list