mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:00:37 +00:00
* Headers/AppKit/NSSegmentedControl.h
* Source/NSSegmentedCell.m * Source/NSSegmentedControl.m: Correct tabbing. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25947 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
25386c9ae8
commit
d4da065a2d
4 changed files with 15 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-01-14 09:17-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Headers/AppKit/NSSegmentedControl.h
|
||||||
|
* Source/NSSegmentedCell.m
|
||||||
|
* Source/NSSegmentedControl.m: Correct tabbing.
|
||||||
|
|
||||||
2008-01-14 Fred Kiefer <FredKiefer@gmx.de>
|
2008-01-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSKeyValueBinding.m (+getBinding:forObject:): Correct bug
|
* Source/NSKeyValueBinding.m (+getBinding:forObject:): Correct bug
|
||||||
|
|
|
@ -53,5 +53,6 @@
|
||||||
- (BOOL) isSelectedForSegment: (int)segment;
|
- (BOOL) isSelectedForSegment: (int)segment;
|
||||||
- (void) setEnabled: (BOOL)flag forSegment: (int)segment;
|
- (void) setEnabled: (BOOL)flag forSegment: (int)segment;
|
||||||
- (BOOL) isEnabledForSegment: (int)segment;
|
- (BOOL) isEnabledForSegment: (int)segment;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -348,13 +348,13 @@
|
||||||
{
|
{
|
||||||
[segment setSelected: flag];
|
[segment setSelected: flag];
|
||||||
if (flag)
|
if (flag)
|
||||||
{
|
{
|
||||||
_selected_segment = seg;
|
_selected_segment = seg;
|
||||||
}
|
}
|
||||||
else if (seg == _selected_segment)
|
else if (seg == _selected_segment)
|
||||||
{
|
{
|
||||||
_selected_segment = -1;
|
_selected_segment = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -524,7 +524,7 @@
|
||||||
{
|
{
|
||||||
id segment = [_items objectAtIndex: seg];
|
id segment = [_items objectAtIndex: seg];
|
||||||
NSFont *font = [NSFont controlContentFontOfSize:
|
NSFont *font = [NSFont controlContentFontOfSize:
|
||||||
[NSFont systemFontSize]];
|
[NSFont systemFontSize]];
|
||||||
NSString *label = [segment label];
|
NSString *label = [segment label];
|
||||||
NSSize textSize = [label sizeWithAttributes: [NSDictionary dictionary]];
|
NSSize textSize = [label sizeWithAttributes: [NSDictionary dictionary]];
|
||||||
NSRect textFrame = frame;
|
NSRect textFrame = frame;
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
- (void) mouseDown: (NSEvent *)event
|
- (void) mouseDown: (NSEvent *)event
|
||||||
{
|
{
|
||||||
NSPoint location = [self convertPoint: [event locationInWindow]
|
NSPoint location = [self convertPoint: [event locationInWindow]
|
||||||
fromView: nil];
|
fromView: nil];
|
||||||
|
|
||||||
[super mouseDown: event];
|
[super mouseDown: event];
|
||||||
[_cell _detectHit: location];
|
[_cell _detectHit: location];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue