mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
Use setTitle: instead of setStringValue: for theme button.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28076 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0548fc3f19
commit
8a9282efc1
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSInfoPanel.m: Use setTitle: instead of setStringValue:
|
||||
for theme button.
|
||||
|
||||
2009-03-13 01:01-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSToolbarView.m:
|
||||
|
|
|
@ -190,7 +190,7 @@ new_label (NSString *value)
|
|||
|
||||
s = [NSString stringWithFormat: @"%@: %@",
|
||||
_(@"Current theme"), [[GSTheme theme] name]];
|
||||
[b setStringValue: s];
|
||||
[b setTitle: s];
|
||||
[b sizeToFit];
|
||||
f = [b frame];
|
||||
f.origin.x = ([c frame].size.width - f.size.width) / 2;
|
||||
|
@ -464,7 +464,7 @@ new_label (NSString *value)
|
|||
theme = [NSString stringWithFormat: @"%@: %@",
|
||||
_(@"Current theme"), [[GSTheme theme] name]];
|
||||
themeLabel = AUTORELEASE([NSButton new]);
|
||||
[themeLabel setStringValue: theme];
|
||||
[themeLabel setTitle: theme];
|
||||
[themeLabel setBordered: NO];
|
||||
[themeLabel setAlignment: NSLeftTextAlignment];
|
||||
[themeLabel setFont: smallFont];
|
||||
|
|
Loading…
Reference in a new issue