mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:31:56 +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
ec278abdac
commit
89ee2952bb
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>
|
2009-03-13 01:01-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/GSToolbarView.m:
|
* Source/GSToolbarView.m:
|
||||||
|
|
|
@ -190,7 +190,7 @@ new_label (NSString *value)
|
||||||
|
|
||||||
s = [NSString stringWithFormat: @"%@: %@",
|
s = [NSString stringWithFormat: @"%@: %@",
|
||||||
_(@"Current theme"), [[GSTheme theme] name]];
|
_(@"Current theme"), [[GSTheme theme] name]];
|
||||||
[b setStringValue: s];
|
[b setTitle: s];
|
||||||
[b sizeToFit];
|
[b sizeToFit];
|
||||||
f = [b frame];
|
f = [b frame];
|
||||||
f.origin.x = ([c frame].size.width - f.size.width) / 2;
|
f.origin.x = ([c frame].size.width - f.size.width) / 2;
|
||||||
|
@ -464,7 +464,7 @@ new_label (NSString *value)
|
||||||
theme = [NSString stringWithFormat: @"%@: %@",
|
theme = [NSString stringWithFormat: @"%@: %@",
|
||||||
_(@"Current theme"), [[GSTheme theme] name]];
|
_(@"Current theme"), [[GSTheme theme] name]];
|
||||||
themeLabel = AUTORELEASE([NSButton new]);
|
themeLabel = AUTORELEASE([NSButton new]);
|
||||||
[themeLabel setStringValue: theme];
|
[themeLabel setTitle: theme];
|
||||||
[themeLabel setBordered: NO];
|
[themeLabel setBordered: NO];
|
||||||
[themeLabel setAlignment: NSLeftTextAlignment];
|
[themeLabel setAlignment: NSLeftTextAlignment];
|
||||||
[themeLabel setFont: smallFont];
|
[themeLabel setFont: smallFont];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue