mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
* Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
connection to _doneButton outlet. * Source/GSToolbarCustomizationPalette.m: Added code in init to set the state of the size checkbox. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28120 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
37efe84aac
commit
bcdfa175b7
3 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-03-22 23:57-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Add
|
||||
connection to _doneButton outlet.
|
||||
* Source/GSToolbarCustomizationPalette.m: Added code in init
|
||||
to set the state of the size checkbox.
|
||||
|
||||
2009-03-21 12:27-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Panels/English.lproj/GSToolbarCustomizationPalette.gorm: Added
|
||||
|
|
Binary file not shown.
|
@ -239,12 +239,23 @@
|
|||
NSEnumerator *e = nil;
|
||||
NSString *identifier = nil;
|
||||
NSToolbarDisplayMode tag = [toolbar displayMode];
|
||||
NSToolbarSizeMode size = [toolbar sizeMode];
|
||||
id delegate = [toolbar delegate];
|
||||
|
||||
[_allowedItems removeAllObjects];
|
||||
[_defaultItems removeAllObjects];
|
||||
[_displayPopup selectItemWithTag: tag];
|
||||
|
||||
// Set toolbar size checkbox...
|
||||
if(size == NSToolbarSizeModeSmall)
|
||||
{
|
||||
[_sizeCheckBox setState: NSOnState];
|
||||
}
|
||||
else
|
||||
{
|
||||
[_sizeCheckBox setState: NSOffState];
|
||||
}
|
||||
|
||||
if (delegate == nil)
|
||||
{
|
||||
NSLog(@"The toolbar %@ needs a delegate to allow customization",
|
||||
|
|
Loading…
Reference in a new issue