This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.
The branch, next has been updated
via f01852f079c402b54180d1d08e96d95d4b3f5049 (commit)
from e11199d9cf45efcd52505da90c5430646de4ea26 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/f01852f079c402b54180d1d08e96d95d4b3f5049
commit f01852f079c402b54180d1d08e96d95d4b3f5049
Author: David Maciejak <[email protected]>
Date: Fri Sep 26 11:20:25 2014 +0700
WINGs: add function to get button caption
This patch is adding a new function WMGetButtonText to get the button
caption.
diff --git a/WINGs/WINGs/WINGs.h b/WINGs/WINGs/WINGs.h
index 037f2762..48ffa426 100644
--- a/WINGs/WINGs/WINGs.h
+++ b/WINGs/WINGs/WINGs.h
@@ -1069,6 +1069,8 @@ void WMSetButtonTextAlignment(WMButton *bPtr, WMAlignment
alignment);
void WMSetButtonText(WMButton *bPtr, const char *text);
+char* WMGetButtonText(WMButton *bPtr);
+
void WMSetButtonAltText(WMButton *bPtr, const char *text);
void WMSetButtonTextColor(WMButton *bPtr, WMColor *color);
diff --git a/WINGs/wbutton.c b/WINGs/wbutton.c
index 341bdc8f..33a90953 100644
--- a/WINGs/wbutton.c
+++ b/WINGs/wbutton.c
@@ -325,6 +325,11 @@ void WMSetButtonText(WMButton * bPtr, const char *text)
}
}
+char *WMGetButtonText(WMButton *bPtr)
+{
+ return bPtr->caption;
+}
+
void WMSetButtonAltText(WMButton * bPtr, const char *text)
{
if (bPtr->altCaption)
-----------------------------------------------------------------------
Summary of changes:
WINGs/WINGs/WINGs.h | 2 ++
WINGs/wbutton.c | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")
--
To unsubscribe, send mail to [email protected].