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:
Fred Kiefer 2009-03-15 17:40:08 +00:00
parent 0548fc3f19
commit 8a9282efc1
2 changed files with 7 additions and 2 deletions

View file

@ -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:

View file

@ -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];