1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-02 14:35:47 +01:00

WINGs: Added a few missing const attributes

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-23 18:14:02 +01:00
committed by Carlos R. Mafra
parent c7f745c353
commit 26c64933e0
4 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@
#define XDND_DEST_VIEW_IS_REGISTERED(dragInfo) ((dragInfo->destInfo) != NULL)\ #define XDND_DEST_VIEW_IS_REGISTERED(dragInfo) ((dragInfo->destInfo) != NULL)\
&& ((dragInfo->destInfo->destView->dragDestinationProcs) != NULL) && ((dragInfo->destInfo->destView->dragDestinationProcs) != NULL)
static unsigned char XDNDversion = XDND_VERSION; static const unsigned char XDNDversion = XDND_VERSION;
static WMHandlerID dndDestinationTimer = NULL; static WMHandlerID dndDestinationTimer = NULL;
static void *idleState(WMView * destView, XClientMessageEvent * event, WMDraggingInfo * info); static void *idleState(WMView * destView, XClientMessageEvent * event, WMDraggingInfo * info);

View File

@@ -1178,7 +1178,7 @@ static void readConfiguration(W_ColorPanel * panel)
static void readXColors(W_ColorPanel * panel) static void readXColors(W_ColorPanel * panel)
{ {
WMListItem *item; WMListItem *item;
RGBColor *entry; const RGBColor *entry;
for (entry = rgbColors; entry->name != NULL; entry++) { for (entry = rgbColors; entry->name != NULL; entry++) {
item = WMAddListItem(panel->colorListContentLst, entry->name); item = WMAddListItem(panel->colorListContentLst, entry->name);

View File

@@ -68,7 +68,7 @@ static void didResizeList(W_ViewDelegate * self, WMView * view);
static void unselectAllListItems(WMList * lPtr, WMListItem * exceptThis); static void unselectAllListItems(WMList * lPtr, WMListItem * exceptThis);
W_ViewDelegate _ListViewDelegate = { static W_ViewDelegate _ListViewDelegate = {
NULL, NULL,
NULL, NULL,
didResizeList, didResizeList,

View File

@@ -15,7 +15,7 @@ char *WMViewRealizedNotification = "WMViewRealizedNotification";
VisibilityChangeMask|FocusChangeMask|PropertyChangeMask|\ VisibilityChangeMask|FocusChangeMask|PropertyChangeMask|\
SubstructureNotifyMask|SubstructureRedirectMask SubstructureNotifyMask|SubstructureRedirectMask
static XSetWindowAttributes defAtts = { static const XSetWindowAttributes defAtts = {
None, /* background_pixmap */ None, /* background_pixmap */
0, /* background_pixel */ 0, /* background_pixel */
CopyFromParent, /* border_pixmap */ CopyFromParent, /* border_pixmap */