1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-04-14 03:53:32 +02:00

WINGs: Added 'const' attribute to functions in wballoon, wmenuitem, wmisc, wtextfield

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:04 +02:00
committed by Carlos R. Mafra
parent a1119f8dd3
commit 6616323088
6 changed files with 32 additions and 31 deletions

View File

@@ -519,18 +519,18 @@ void W_DrawReliefWithGC(W_Screen *scr, Drawable d, int x, int y,
void W_CallDestroyHandlers(W_View *view);
void W_PaintTextAndImage(W_View *view, int wrap, WMColor *textColor,
W_Font *font, WMReliefType relief, char *text,
W_Font *font, WMReliefType relief, const char *text,
WMAlignment alignment, W_Pixmap *image,
WMImagePosition position, WMColor *backColor, int ofs);
void W_PaintText(W_View *view, Drawable d, WMFont *font, int x, int y,
int width, WMAlignment alignment, WMColor *color,
int wrap, char *text, int length);
int wrap, const char *text, int length);
int W_GetTextHeight(WMFont *font, char *text, int width, int wrap);
int W_GetTextHeight(WMFont *font, const char *text, int width, int wrap);
int W_TextWidth(WMFont *font, char *text, int length);
int W_TextWidth(WMFont *font, const char *text, int length);
void W_BroadcastMessage(W_View *targetParent, XEvent *event);