1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-03 12:24:17 +01:00

WINGs: Added 'const' attribute to functions in wpanel, wpopupbutton, wtabview

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:05 +02:00
committed by Carlos R. Mafra
parent 6616323088
commit 72108875aa
4 changed files with 32 additions and 32 deletions

View File

@@ -1380,10 +1380,10 @@ void WMSetPopUpButtonAction(WMPopUpButton *sPtr, WMAction *action,
void WMSetPopUpButtonPullsDown(WMPopUpButton *bPtr, Bool flag);
WMMenuItem* WMAddPopUpButtonItem(WMPopUpButton *bPtr, char *title);
WMMenuItem* WMAddPopUpButtonItem(WMPopUpButton *bPtr, const char *title);
WMMenuItem* WMInsertPopUpButtonItem(WMPopUpButton *bPtr, int index,
char *title);
const char *title);
void WMRemovePopUpButtonItem(WMPopUpButton *bPtr, int index);
@@ -1395,7 +1395,7 @@ void WMSetPopUpButtonSelectedItem(WMPopUpButton *bPtr, int index);
int WMGetPopUpButtonSelectedItem(WMPopUpButton *bPtr);
void WMSetPopUpButtonText(WMPopUpButton *bPtr, char *text);
void WMSetPopUpButtonText(WMPopUpButton *bPtr, const char *text);
/* don't free the returned data */
char* WMGetPopUpButtonItem(WMPopUpButton *bPtr, int index);
@@ -1702,7 +1702,7 @@ void WMInsertItemInTabView(WMTabView *tPtr, int index, WMTabViewItem *item);
void WMRemoveTabViewItem(WMTabView *tPtr, WMTabViewItem *item);
WMTabViewItem* WMAddTabViewItemWithView(WMTabView *tPtr, WMView *view,
int identifier, char *label);
int identifier, const char *label);
WMTabViewItem* WMTabViewItemAtPoint(WMTabView *tPtr, int x, int y);
@@ -1729,7 +1729,7 @@ void WMSetTabViewItemEnabled(WMTabViewItem *tPtr, Bool flag);
int WMGetTabViewItemIdentifier(WMTabViewItem *item);
void WMSetTabViewItemLabel(WMTabViewItem *item, char *label);
void WMSetTabViewItemLabel(WMTabViewItem *item, const char *label);
char* WMGetTabViewItemLabel(WMTabViewItem *item);
@@ -1758,26 +1758,26 @@ void WMSetBoxHorizontal(WMBox *box, Bool flag);
/* ---[ WINGs/wpanel.c ]-------------------------------------------------- */
int WMRunAlertPanel(WMScreen *app, WMWindow *owner, char *title, char *msg,
char *defaultButton, char *alternateButton,
char *otherButton);
int WMRunAlertPanel(WMScreen *app, WMWindow *owner, const char *title, const char *msg,
const char *defaultButton, const char *alternateButton,
const char *otherButton);
/* you can free the returned string */
char* WMRunInputPanel(WMScreen *app, WMWindow *owner, char *title, char *msg,
char *defaultText, char *okButton, char *cancelButton);
char* WMRunInputPanel(WMScreen *app, WMWindow *owner, const char *title, const char *msg,
const char *defaultText, const char *okButton, const char *cancelButton);
WMAlertPanel* WMCreateAlertPanel(WMScreen *app, WMWindow *owner, char *title,
char *msg, char *defaultButton,
char *alternateButton, char *otherButton);
WMAlertPanel* WMCreateAlertPanel(WMScreen *app, WMWindow *owner, const char *title,
const char *msg, const char *defaultButton,
const char *alternateButton, const char *otherButton);
WMInputPanel* WMCreateInputPanel(WMScreen *app, WMWindow *owner, char *title,
char *msg, char *defaultText, char *okButton,
char *cancelButton);
WMInputPanel* WMCreateInputPanel(WMScreen *app, WMWindow *owner, const char *title,
const char *msg, const char *defaultText, const char *okButton,
const char *cancelButton);
WMGenericPanel* WMCreateGenericPanel(WMScreen *scrPtr, WMWindow *owner,
char *title, char *defaultButton,
char *alternateButton);
const char *title, const char *defaultButton,
const char *alternateButton);
void WMDestroyAlertPanel(WMAlertPanel *panel);