mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
* Palettes/2Controls/GormButtonAttributesInspector.m
(buttonTypeForObject:): use NSMomentaryPushInButton for "Momentary Push" type. (rever:): use tag to select button type.
This commit is contained in:
parent
4c915602dd
commit
39af9e0b4c
1 changed files with 3 additions and 5 deletions
|
@ -98,7 +98,7 @@ NSString *rtString = nil;
|
|||
NSDebugLog(@"highlight = %d, stateby = %d",
|
||||
(int)[cell highlightsBy],(int)[cell showsStateBy]);
|
||||
|
||||
type = NSMomentaryPushButton;
|
||||
type = NSMomentaryPushInButton;
|
||||
if (highlight == NSChangeBackgroundCellMask)
|
||||
{
|
||||
if (stateby == NSNoCellMask)
|
||||
|
@ -109,7 +109,7 @@ NSString *rtString = nil;
|
|||
else if (highlight == (NSPushInCellMask | NSChangeGrayCellMask))
|
||||
{
|
||||
if (stateby == NSNoCellMask)
|
||||
type = NSMomentaryPushButton;
|
||||
type = NSMomentaryPushInButton;
|
||||
else
|
||||
type = NSPushOnPushOffButton;
|
||||
}
|
||||
|
@ -451,9 +451,7 @@ NSString *rtString = nil;
|
|||
[cmdMod setState: NSOnState];
|
||||
}
|
||||
|
||||
[typeButton selectItemAtIndex:
|
||||
[typeButton indexOfItemWithTag:
|
||||
[self buttonTypeForObject: obj]]];
|
||||
[typeButton selectItemWithTag: [self buttonTypeForObject: obj]];
|
||||
|
||||
[bezelButton selectItemAtIndex:
|
||||
[bezelButton indexOfItemWithTag: [obj bezelStyle]]];
|
||||
|
|
Loading…
Reference in a new issue