1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-28 17:32:29 +01:00

WINGs: Added 'const' attribute to functions in dragdestination, wtext

This makes both the API and local function const-correct on their
input parameters.
This commit is contained in:
Christophe CURIS
2013-05-09 17:34:06 +02:00
committed by Carlos R. Mafra
parent 72108875aa
commit 75a0beffeb
3 changed files with 25 additions and 24 deletions

View File

@@ -1607,9 +1607,9 @@ void WMSetTextBackgroundColor(WMText *tPtr, WMColor *color);
void WMSetTextBackgroundPixmap(WMText *tPtr, WMPixmap *pixmap);
void WMPrependTextStream(WMText *tPtr, char *text);
void WMPrependTextStream(WMText *tPtr, const char *text);
void WMAppendTextStream(WMText *tPtr, char *text);
void WMAppendTextStream(WMText *tPtr, const char *text);
#define WMClearText(tPtr) WMAppendTextStream \
((tPtr), (NULL))
@@ -1640,23 +1640,24 @@ int WMGetTextSelectionUnderlined(WMText *tPtr);
void WMSetTextAlignment(WMText *tPtr, WMAlignment alignment);
Bool WMFindInTextStream(WMText *tPtr, char *needle, Bool direction,
Bool WMFindInTextStream(WMText *tPtr, const char *needle, Bool direction,
Bool caseSensitive);
/* Warning: replacement can be modified by the function */
Bool WMReplaceTextSelection(WMText *tPtr, char *replacement);
/* parser related stuff... use only if implementing a new parser */
void* WMCreateTextBlockWithObject(WMText *tPtr, WMWidget *w, char *description,
void* WMCreateTextBlockWithObject(WMText *tPtr, WMWidget *w, const char *description,
WMColor *color, unsigned short first,
unsigned short extraInfo);
void* WMCreateTextBlockWithPixmap(WMText *tPtr, WMPixmap *p, char *description,
void* WMCreateTextBlockWithPixmap(WMText *tPtr, WMPixmap *p, const char *description,
WMColor *color, unsigned short first,
unsigned short extraInfo);
void* WMCreateTextBlockWithText(WMText *tPtr, char *text, WMFont *font,
void* WMCreateTextBlockWithText(WMText *tPtr, const char *text, WMFont *font,
WMColor *color, unsigned short first,
unsigned short length);