mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 21:15:50 +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:
committed by
Carlos R. Mafra
parent
65f8cb7a4b
commit
870a73ff32
@@ -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