Author: mlytwyn
Date: Mon Aug 17 06:57:37 2015
New Revision: 38895

URL: http://svn.gna.org/viewcvs/gnustep?rev=38895&view=rev
Log:
Revert merged out table header drawing code

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m?rev=38895&r1=38894&r2=38895&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m  
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSThemeDrawing.m  Mon Aug 
17 06:57:37 2015
@@ -2880,6 +2880,30 @@
                    inView: tableHeaderView];
       drawingRect.origin.x += width;
     }
+  
+  // Fill out table header to end if needed...
+  //if ([[[GSTheme theme] name] isEqualToString: @"GSTheme"] == NO)
+    {
+      if (lastColumnToDraw == [tableView numberOfColumns] - 1)
+        {
+          // This is really here to handle extending the table headers using 
the
+          // WinUXTheme (or one equivalent to) that writes directly to the MS 
windows
+          // device contexts...
+          NSRect clipFrame = [(NSClipView*)[tableView superview] 
documentVisibleRect];
+          CGFloat maxWidth = NSMaxX(clipFrame);
+          if (drawingRect.origin.x < maxWidth)
+          {
+            drawingRect.size.width = maxWidth - drawingRect.origin.x;
+            column = [columns objectAtIndex: lastColumnToDraw];
+            cell = AUTORELEASE([[NSTableHeaderCell alloc] initTextCell:@""]);
+            [cell setHighlighted: NO];
+#if 0
+            NSLog(@"%s:---> i: %d drawRect: %@", __PRETTY_FUNCTION__, -2, 
NSStringFromRect(drawingRect));
+#endif
+            [cell drawWithFrame: drawingRect inView: tableHeaderView];
+          }
+        }
+    }
 }
 
 - (void) drawPopUpButtonCellInteriorWithFrame: (NSRect)cellFrame


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to