WINGs: Added a few missing const attributes
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 23 Nov 2013 17:14:02 +0000 (23 18:14 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:06 +0000 (30 18:11 +0000)
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/dragdestination.c
WINGs/wcolorpanel.c
WINGs/wlist.c
WINGs/wview.c

index 0d9434d..2dba64a 100644 (file)
@@ -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);
index 30bf895..26ca1fc 100644 (file)
@@ -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);
index 40d2d25..e91dcde 100644 (file)
@@ -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,
index 5c6ecb3..1138f36 100644 (file)
@@ -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 */