[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-463-g04185a6

ticho at claws-mail.org ticho at claws-mail.org
Mon Nov 5 23:39:49 CET 2018


The branch, gtk3 has been updated
       via  04185a6e45fa67d2231644a96158441f32afafb8 (commit)
      from  0b23f0f87bf92de28c8262e93e115454bda3743f (commit)

Summary of changes:
 src/gtk/gtkcmclist.c |   13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit 04185a6e45fa67d2231644a96158441f32afafb8
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Nov 5 23:39:28 2018 +0100

    Fix GtkCMCList columns not being resizeable by dragging.

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index ae53353..521e802 100644
--- a/src/gtk/gtkcmclist.c
+++ b/src/gtk/gtkcmclist.c
@@ -4635,7 +4635,6 @@ gtk_cmclist_realize (GtkWidget *widget)
 
   attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK;
 
-
   /* main window */
   window = gdk_window_new (gtk_widget_get_parent_window (widget),
 				   &attributes, attributes_mask);
@@ -4657,7 +4656,7 @@ gtk_cmclist_realize (GtkWidget *widget)
   attributes.y = clist->column_title_area.y;
   attributes.width = clist->column_title_area.width;
   attributes.height = clist->column_title_area.height;
-  
+ 
   clist->title_window = gdk_window_new (window, &attributes,
 					attributes_mask);
   gtk_widget_register_window (widget, clist->title_window);
@@ -4700,11 +4699,6 @@ gtk_cmclist_realize (GtkWidget *widget)
 
   /* create resize windows */
   attributes.wclass = GDK_INPUT_ONLY;
-  attributes.event_mask = event_mask |
-    GDK_BUTTON_PRESS_MASK |
-    GDK_BUTTON_RELEASE_MASK |
-    GDK_POINTER_MOTION_MASK |
-    GDK_POINTER_MOTION_HINT_MASK;
   attributes_mask = GDK_WA_CURSOR;
   attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
 						  GDK_SB_H_DOUBLE_ARROW);
@@ -4714,7 +4708,10 @@ gtk_cmclist_realize (GtkWidget *widget)
   attributes.y = 0;
   attributes.width = 0;
   attributes.height = 0;
-  attributes.event_mask = event_mask;
+  attributes.event_mask = event_mask |
+    GDK_BUTTON_PRESS_MASK |
+    GDK_BUTTON_RELEASE_MASK |
+    GDK_POINTER_MOTION_MASK;
 
   for (i = 0; i < clist->columns; i++)
     {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list