Fix error updating dynamic services

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29768 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-26 05:20:59 +00:00
parent 8d1c156985
commit a45f28148f
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2010-02-26 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSServicesManager.m: NSUpdateDynamicServices() ask workspace
to rebuild cache of application information so the update from cache is
actually loading the latest data.
* Source/NSLayoutManager.m: Fix for insertion point of empty document.
Not sure this is ever needed in normal use.
2010-02-25 22:37-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSClipView.m: Correction for crash.

View file

@ -536,7 +536,7 @@ static NSString *disabledName = @".GNUstepDisabled";
if (str == nil)
{
str = [[NSHomeDirectory() stringByAppendingPathComponent:
@"GNUstep"] stringByAppendingPathComponent: @"Library"];
@"GNUstep"] stringByAppendingPathComponent: @"Library"];
}
str = [str stringByAppendingPathComponent: @"Services"];
path = [str stringByAppendingPathComponent: servicesName];
@ -1786,5 +1786,12 @@ NSShowsServicesMenuItem(NSString *name)
void
NSUpdateDynamicServices(void)
{
/* Get the workspace manager to make sure that cached service info is
* up to date.
*/
[[NSWorkspace sharedWorkspace] findApplications];
/* Reload service information from disk cache.
*/
[[GSServicesManager manager] loadServices];
}

View file

@ -845,7 +845,7 @@ has the same y origin and height as the line frag rect it is in.
cindex == [_textStorage length], in which case we set it to 1. */
if (fraction_through == 1.0)
{
r = lf->used_rect;
r = (lf == 0) ? NSZeroRect : lf->used_rect;
r.origin.x += r.size.width;
r.size.width = 1;
return r;