mirror of
https://github.com/gryf/wmaker.git
synced 2026-04-17 13:43:35 +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:
committed by
Carlos R. Mafra
parent
a1119f8dd3
commit
6616323088
@@ -936,7 +936,7 @@ extern char *WMViewRealizedNotification;
|
||||
|
||||
/* ---[ WINGs/wballoon.c ]------------------------------------------------ */
|
||||
|
||||
void WMSetBalloonTextForView(char *text, WMView *view);
|
||||
void WMSetBalloonTextForView(const char *text, WMView *view);
|
||||
|
||||
void WMSetBalloonTextAlignment(WMScreen *scr, WMAlignment alignment);
|
||||
|
||||
@@ -1097,14 +1097,14 @@ void WMSetFrameTitle(WMFrame *fPtr, const char *title);
|
||||
|
||||
WMTextField* WMCreateTextField(WMWidget *parent);
|
||||
|
||||
void WMInsertTextFieldText(WMTextField *tPtr, char *text, int position);
|
||||
void WMInsertTextFieldText(WMTextField *tPtr, const char *text, int position);
|
||||
|
||||
void WMDeleteTextFieldRange(WMTextField *tPtr, WMRange range);
|
||||
|
||||
/* you can free the returned string */
|
||||
char* WMGetTextFieldText(WMTextField *tPtr);
|
||||
|
||||
void WMSetTextFieldText(WMTextField *tPtr, char *text);
|
||||
void WMSetTextFieldText(WMTextField *tPtr, const char *text);
|
||||
|
||||
void WMSetTextFieldAlignment(WMTextField *tPtr, WMAlignment alignment);
|
||||
|
||||
@@ -1325,7 +1325,7 @@ char* WMGetMenuItemShortcut(WMMenuItem *item);
|
||||
|
||||
unsigned WMGetMenuItemShortcutModifierMask(WMMenuItem *item);
|
||||
|
||||
void WMSetMenuItemShortcut(WMMenuItem *item, char *shortcut);
|
||||
void WMSetMenuItemShortcut(WMMenuItem *item, const char *shortcut);
|
||||
|
||||
void WMSetMenuItemShortcutModifierMask(WMMenuItem *item, unsigned mask);
|
||||
|
||||
@@ -1339,7 +1339,7 @@ WMAction* WMGetMenuItemAction(WMMenuItem *item);
|
||||
|
||||
void* WMGetMenuItemData(WMMenuItem *item);
|
||||
|
||||
void WMSetMenuItemTitle(WMMenuItem *item, char *title);
|
||||
void WMSetMenuItemTitle(WMMenuItem *item, const char *title);
|
||||
|
||||
char* WMGetMenuItemTitle(WMMenuItem *item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user