mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-25 00:46:56 +01:00
- WMGetTextDefaultColor() won't retain the returned color anymore, and you
shouldn't release it. It is just a reference to the internal WMText color. This should make all the functions returning colors from widgets behave consistently
This commit is contained in:
1 parent
bde9b8a21a
commit
c0442b1c59
4 files changed
+4
-3
No files matched your search
+1
-1
@@ -3948,7 +3948,7 @@ WMSetTextDefaultColor(WMText *tPtr, WMColor *color)
|
||||
WMColor*
|
||||
WMGetTextDefaultColor(WMText *tPtr)
|
||||
{
|
||||
return WMRetainColor(tPtr->dColor);
|
||||
return tPtr->dColor;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user