Author: mlytwyn
Date: Thu Dec 15 19:36:56 2016
New Revision: 40265
URL: http://svn.gna.org/viewcvs/gnustep?rev=40265&view=rev
Log:
Sync table headers on mouse down clicks to avoid missing text, etc
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSTableHeaderView.m
libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableHeaderView.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTableHeaderView.m?rev=40265&r1=40264&r2=40265&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTableHeaderView.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTableHeaderView.m
Thu Dec 15 19:36:56 2016
@@ -520,7 +520,7 @@
p = [self convertPoint: unconverted fromView: nil].x;
if (mouseDragged == NO)
{
- NSLog(@"TODO: Deselect the column");
+ [self setNeedsDisplay:YES];
}
mouseDragged = YES;
if (p < minVisCoord || p > maxVisCoord)
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m?rev=40265&r1=40264&r2=40265&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSTableView.m Thu Dec
15 19:36:56 2016
@@ -3725,6 +3725,7 @@
{
[self deselectAll:self];
[self displayIfNeeded];
+ [[self headerView] setNeedsDisplay:YES];
}
else
{
@@ -3796,6 +3797,10 @@
currentRow, \
&_selectedRow, \
selectionMode); \
+ if (_clickedColumn != -1) \
+ { \
+ [[self headerView] setNeedsDisplayInRect:[[self headerView]
headerRectOfColumn:_clickedColumn]]; \
+ } \
[self displayIfNeeded]; \
} \
} while (0);
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs