mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 13:20:59 +00:00
Minor documentation fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17001 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fd7f62889c
commit
06bf8f4210
1 changed files with 32 additions and 7 deletions
|
@ -1031,14 +1031,22 @@ static NSString *disabledName = @".GNUstepDisabled";
|
||||||
|
|
||||||
[self loadServices];
|
[self loadServices];
|
||||||
if (_allDisabled == nil)
|
if (_allDisabled == nil)
|
||||||
_allDisabled = [[NSMutableSet alloc] initWithCapacity: 1];
|
{
|
||||||
|
_allDisabled = [[NSMutableSet alloc] initWithCapacity: 1];
|
||||||
|
}
|
||||||
if (enable)
|
if (enable)
|
||||||
[_allDisabled removeObject: item];
|
{
|
||||||
|
[_allDisabled removeObject: item];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
[_allDisabled addObject: item];
|
{
|
||||||
|
[_allDisabled addObject: item];
|
||||||
|
}
|
||||||
d = [NSSerializer serializePropertyList: [_allDisabled allObjects]];
|
d = [NSSerializer serializePropertyList: [_allDisabled allObjects]];
|
||||||
if ([d writeToFile: _disabledPath atomically: YES] == YES)
|
if ([d writeToFile: _disabledPath atomically: YES] == YES)
|
||||||
return 0;
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1390,20 +1398,37 @@ NSPerformService(NSString *serviceItem, NSPasteboard *pboard)
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Controls whether the item name should be included in the services menu.
|
||||||
|
* </p>
|
||||||
|
* <p>If enabled is YES then the services menu for each application will
|
||||||
|
* include the named item, if enabled is NO then the service will not be
|
||||||
|
* shown in application services menus.
|
||||||
|
* </p>
|
||||||
|
* <p>Returns 0 if the setting is successfuly changed. Non-zero otherwise.
|
||||||
|
* </p>
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
NSSetShowsServicesMenuItem(NSString *name, BOOL enabled)
|
NSSetShowsServicesMenuItem(NSString *name, BOOL enabled)
|
||||||
{
|
{
|
||||||
|
|
||||||
return [[GSServicesManager manager] setShowsServicesMenuItem: name
|
return [[GSServicesManager manager] setShowsServicesMenuItem: name
|
||||||
to: enabled];
|
to: enabled];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a flag indicating whether the named service is supposed to be
|
||||||
|
* displayed in application services menus.
|
||||||
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
NSShowsServicesMenuItem(NSString * name)
|
NSShowsServicesMenuItem(NSString *name)
|
||||||
{
|
{
|
||||||
return [[GSServicesManager manager] showsServicesMenuItem: name];
|
return [[GSServicesManager manager] showsServicesMenuItem: name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A services providing application may use this to update the list of
|
||||||
|
* services it provides.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
NSUpdateDynamicServices(void)
|
NSUpdateDynamicServices(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue