1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-20 18:33:31 +01:00

wmaker: Added 'const' attribute to most global functions

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 17:57:48 +02:00
committed by Carlos R. Mafra
parent f0c1dc9fc3
commit 9b5db31d95
22 changed files with 65 additions and 64 deletions

View File

@@ -140,7 +140,7 @@ static void appearanceObserver(void *self, WMNotification * notif)
* The created menu.
*----------------------------------------------------------------------
*/
WMenu *wMenuCreate(WScreen * screen, char *title, int main_menu)
WMenu *wMenuCreate(WScreen *screen, const char *title, int main_menu)
{
WMenu *menu;
static int brother = 0;
@@ -230,7 +230,7 @@ WMenu *wMenuCreate(WScreen * screen, char *title, int main_menu)
return menu;
}
WMenu *wMenuCreateForApp(WScreen * screen, char *title, int main_menu)
WMenu *wMenuCreateForApp(WScreen *screen, const char *title, int main_menu)
{
WMenu *menu;
@@ -254,7 +254,7 @@ static void insertEntry(WMenu * menu, WMenuEntry * entry, int index)
menu->entries[index] = entry;
}
WMenuEntry *wMenuInsertCallback(WMenu * menu, int index, char *text,
WMenuEntry *wMenuInsertCallback(WMenu *menu, int index, const char *text,
void (*callback) (WMenu * menu, WMenuEntry * entry), void *clientdata)
{
WMenuEntry *entry;