mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-14 21:40:55 +00:00
Minor NSTextView fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27364 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
555fc13e2e
commit
daedd434bb
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-12-21 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSTextView.m (-draggingUpdated:): Avoid redundant call to
|
||||||
|
-scrollPoint: when scrolling diagonally.
|
||||||
|
* Source/NSTextView.m: Fix inconsistent naming of (private)
|
||||||
|
NSTextStorage category.
|
||||||
|
|
||||||
2008-12-20 22:13-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
2008-12-20 22:13-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/GSNibLoading.m: Read objects/accessibility and oids
|
* Source/GSNibLoading.m: Read objects/accessibility and oids
|
||||||
|
|
|
@ -4598,14 +4598,12 @@ other than copy/paste or dragging. */
|
||||||
vRect.origin.x -= DRAGGING_SCROLL_DIST;
|
vRect.origin.x -= DRAGGING_SCROLL_DIST;
|
||||||
if (NSMinX(vRect) < NSMinX(_bounds))
|
if (NSMinX(vRect) < NSMinX(_bounds))
|
||||||
vRect.origin.x = NSMinX(_bounds);
|
vRect.origin.x = NSMinX(_bounds);
|
||||||
[self scrollPoint: vRect.origin];
|
|
||||||
}
|
}
|
||||||
else if (dragPoint.x >= NSMaxX(vRect) - DRAGGING_SCROLL_BORDER)
|
else if (dragPoint.x >= NSMaxX(vRect) - DRAGGING_SCROLL_BORDER)
|
||||||
{
|
{
|
||||||
vRect.origin.x += DRAGGING_SCROLL_DIST;
|
vRect.origin.x += DRAGGING_SCROLL_DIST;
|
||||||
if (NSMaxX(vRect) > NSMaxX(_bounds))
|
if (NSMaxX(vRect) > NSMaxX(_bounds))
|
||||||
vRect.origin.x = NSMaxX(_bounds) - NSWidth(vRect);
|
vRect.origin.x = NSMaxX(_bounds) - NSWidth(vRect);
|
||||||
[self scrollPoint: vRect.origin];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dragPoint.y <= NSMinY(vRect) + DRAGGING_SCROLL_BORDER)
|
if (dragPoint.y <= NSMinY(vRect) + DRAGGING_SCROLL_BORDER)
|
||||||
|
@ -4613,15 +4611,14 @@ other than copy/paste or dragging. */
|
||||||
vRect.origin.y -= DRAGGING_SCROLL_DIST;
|
vRect.origin.y -= DRAGGING_SCROLL_DIST;
|
||||||
if (NSMinY(vRect) < NSMinY(_bounds))
|
if (NSMinY(vRect) < NSMinY(_bounds))
|
||||||
vRect.origin.y = NSMinY(_bounds);
|
vRect.origin.y = NSMinY(_bounds);
|
||||||
[self scrollPoint: vRect.origin];
|
|
||||||
}
|
}
|
||||||
else if (dragPoint.y >= NSMaxY(vRect) - DRAGGING_SCROLL_BORDER)
|
else if (dragPoint.y >= NSMaxY(vRect) - DRAGGING_SCROLL_BORDER)
|
||||||
{
|
{
|
||||||
vRect.origin.y += DRAGGING_SCROLL_DIST;
|
vRect.origin.y += DRAGGING_SCROLL_DIST;
|
||||||
if (NSMaxY(vRect) > NSMaxY(_bounds))
|
if (NSMaxY(vRect) > NSMaxY(_bounds))
|
||||||
vRect.origin.y = NSMaxY(_bounds) - NSHeight(vRect);
|
vRect.origin.y = NSMaxY(_bounds) - NSHeight(vRect);
|
||||||
[self scrollPoint: vRect.origin];
|
|
||||||
}
|
}
|
||||||
|
[self scrollPoint: vRect.origin];
|
||||||
#undef DRAGGING_SCROLL_BORDER
|
#undef DRAGGING_SCROLL_BORDER
|
||||||
#undef DRAGGING_SCROLL_DIST
|
#undef DRAGGING_SCROLL_DIST
|
||||||
|
|
||||||
|
@ -5259,7 +5256,7 @@ configuation! */
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSTextStorage(NSTextViewUndo)
|
@implementation NSTextStorage(NSTextViewUndoSupport)
|
||||||
/* FIXME: Should this code be moved to NSTextStorage? */
|
/* FIXME: Should this code be moved to NSTextStorage? */
|
||||||
- (NSTextView *)_bestTextViewForUndo
|
- (NSTextView *)_bestTextViewForUndo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue