View Issue Details

IDProjectCategoryView StatusLast Update
0034393LazarusWidgetsetpublic2018-10-06 11:09
ReporteraccorpAssigned ToJuha Manninen 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformOSXubuntu 16.04OS Version
Product Version1.9 (SVN)Product Buildr59253 
Target VersionFixed in Version 
Summary0034393: Gtk2: TListView - resizing a column with the mouse also starts drag-and-drop
DescriptionTListView with ViewStyle=vsReport and DragMode=dmAutomatic.
The column resize mode and the drag-and-drop mode interfere with each other.
Steps To ReproduceStart Lazarus IDE, open Tool/Options > Environment/Component Palette.
In listview with components, resize one of the columns.
TagsNo tags attached.
Fixed in Revisionr59254
LazTarget-
WidgetsetGTK 2
Attached Files
  • treeview-col-resize.diff (527 bytes)
    Index: lcl/interfaces/gtk2/gtk2callback.inc
    ===================================================================
    --- lcl/interfaces/gtk2/gtk2callback.inc	(revision 59253)
    +++ lcl/interfaces/gtk2/gtk2callback.inc	(working copy)
    @@ -1964,6 +1964,11 @@
     
     begin
       Result := 0;
    +
    +  if GTK_IS_TREE_VIEW(widget)
    +  and (gtk_tree_view_get_bin_window(PGtkTreeView(widget)) <> Event^.window) then
    +    Exit;
    +
       CheckTransparentWindow({%H-}TLCLIntfHandle(widget), AWinControl);
       if (widget=nil) or (AWinControl=nil) then
         Exit;
    

Activities

accorp

2018-10-06 05:39

reporter  

treeview-col-resize.diff (527 bytes)
Index: lcl/interfaces/gtk2/gtk2callback.inc
===================================================================
--- lcl/interfaces/gtk2/gtk2callback.inc	(revision 59253)
+++ lcl/interfaces/gtk2/gtk2callback.inc	(working copy)
@@ -1964,6 +1964,11 @@
 
 begin
   Result := 0;
+
+  if GTK_IS_TREE_VIEW(widget)
+  and (gtk_tree_view_get_bin_window(PGtkTreeView(widget)) <> Event^.window) then
+    Exit;
+
   CheckTransparentWindow({%H-}TLCLIntfHandle(widget), AWinControl);
   if (widget=nil) or (AWinControl=nil) then
     Exit;

Juha Manninen

2018-10-06 11:09

developer   ~0111278

Applied, thanks.
This was a great fix. The bug has bothered me as well.

Issue History

Date Modified Username Field Change
2018-10-06 05:39 accorp New Issue
2018-10-06 05:39 accorp File Added: treeview-col-resize.diff
2018-10-06 11:07 Juha Manninen Assigned To => Juha Manninen
2018-10-06 11:07 Juha Manninen Status new => assigned
2018-10-06 11:09 Juha Manninen Fixed in Revision => r59254
2018-10-06 11:09 Juha Manninen LazTarget => -
2018-10-06 11:09 Juha Manninen Note Added: 0111278
2018-10-06 11:09 Juha Manninen Status assigned => resolved
2018-10-06 11:09 Juha Manninen Resolution open => fixed