mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-22 07:17:05 +01:00
WINGs: add function to get button caption
This patch is adding a new function WMGetButtonText to get the button caption. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
1 parent
65f8cb7a4b
commit
870a73ff32
2 files changed
+8
No files matched your search
@@ -325,6 +325,11 @@ void WMSetButtonText(WMButton * bPtr, const char *text)
|
||||
}
|
||||
}
|
||||
|
||||
const char *WMGetButtonText(WMButton *bPtr)
|
||||
{
|
||||
return bPtr->caption;
|
||||
}
|
||||
|
||||
void WMSetButtonAltText(WMButton * bPtr, const char *text)
|
||||
{
|
||||
if (bPtr->altCaption)
|
||||
|
||||
Reference in new issue
Block a user