* Source/NSTextView.m (-setRulersVisible:): Create a horizontal ruler on

the scroll view if needed - this seems to be the OS X behaviour.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32932 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-04-27 04:00:33 +00:00
parent 2042ff816c
commit 9db8881062
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-04-26 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSTextView.m (-setRulersVisible:): Create a horizontal ruler on
the scroll view if needed - this seems to be the OS X behaviour.
2011-04-21 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImage.m (-nativeDrawInRect:...): Fix a bug in my recent change

View file

@ -1448,6 +1448,10 @@ to make sure syncing is handled properly in all cases.
_tf.is_ruler_visible = flag;
if (sv != nil)
{
if (_tf.is_ruler_visible && ![sv hasHorizontalRuler])
{
[sv setHasHorizontalRuler: YES];
}
[sv setRulersVisible: _tf.is_ruler_visible];
}
}