mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:00:39 +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
|
@ -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…
Add table
Add a link
Reference in a new issue