From: Christophe CURIS Date: Sat, 23 Nov 2013 17:14:02 +0000 (+0100) Subject: WINGs: Added a few missing const attributes X-Git-Tag: wmaker-0.95.6~304 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/26c64933e0f71389cf2e0fd5a0119f8409c75222 WINGs: Added a few missing const attributes Signed-off-by: Christophe CURIS --- diff --git a/WINGs/dragdestination.c b/WINGs/dragdestination.c index 0d9434d3..2dba64ab 100644 --- a/WINGs/dragdestination.c +++ b/WINGs/dragdestination.c @@ -25,7 +25,7 @@ #define XDND_DEST_VIEW_IS_REGISTERED(dragInfo) ((dragInfo->destInfo) != NULL)\ && ((dragInfo->destInfo->destView->dragDestinationProcs) != NULL) -static unsigned char XDNDversion = XDND_VERSION; +static const unsigned char XDNDversion = XDND_VERSION; static WMHandlerID dndDestinationTimer = NULL; static void *idleState(WMView * destView, XClientMessageEvent * event, WMDraggingInfo * info); diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c index 30bf8954..26ca1fcb 100644 --- a/WINGs/wcolorpanel.c +++ b/WINGs/wcolorpanel.c @@ -1178,7 +1178,7 @@ static void readConfiguration(W_ColorPanel * panel) static void readXColors(W_ColorPanel * panel) { WMListItem *item; - RGBColor *entry; + const RGBColor *entry; for (entry = rgbColors; entry->name != NULL; entry++) { item = WMAddListItem(panel->colorListContentLst, entry->name); diff --git a/WINGs/wlist.c b/WINGs/wlist.c index 40d2d25a..e91dcde1 100644 --- a/WINGs/wlist.c +++ b/WINGs/wlist.c @@ -68,7 +68,7 @@ static void didResizeList(W_ViewDelegate * self, WMView * view); static void unselectAllListItems(WMList * lPtr, WMListItem * exceptThis); -W_ViewDelegate _ListViewDelegate = { +static W_ViewDelegate _ListViewDelegate = { NULL, NULL, didResizeList, diff --git a/WINGs/wview.c b/WINGs/wview.c index 5c6ecb35..1138f367 100644 --- a/WINGs/wview.c +++ b/WINGs/wview.c @@ -15,7 +15,7 @@ char *WMViewRealizedNotification = "WMViewRealizedNotification"; VisibilityChangeMask|FocusChangeMask|PropertyChangeMask|\ SubstructureNotifyMask|SubstructureRedirectMask -static XSetWindowAttributes defAtts = { +static const XSetWindowAttributes defAtts = { None, /* background_pixmap */ 0, /* background_pixel */ CopyFromParent, /* border_pixmap */