diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c index 6a6ebd05..1aa5a571 100644 --- a/WINGs/wcolorpanel.c +++ b/WINGs/wcolorpanel.c @@ -1600,8 +1600,8 @@ static Cursor magnifyGrabPointer(W_ColorPanel * panel) W_Screen *scr = WMWidgetScreen(panel->win); Pixmap magPixmap, magPixmap2; Cursor magCursor; - XColor fgColor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue }; - XColor bgColor = { 0, 0xbf00, 0xa000, 0x5000, DoRed | DoGreen | DoBlue }; + XColor fgColor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }; + XColor bgColor = { 0, 0xbf00, 0xa000, 0x5000, DoRed | DoGreen | DoBlue, 0 }; /* Cursor creation stuff */ magPixmap = XCreatePixmapFromBitmapData(scr->display, W_DRAWABLE(scr), diff --git a/WINGs/wtext.c b/WINGs/wtext.c index f032ca6d..01772c4a 100644 --- a/WINGs/wtext.c +++ b/WINGs/wtext.c @@ -1759,6 +1759,7 @@ W_ViewDelegate _TextViewDelegate = { NULL, textDidResize, NULL, + NULL }; #define TEXT_BUFFER_INCR 8 diff --git a/WPrefs.app/Configurations.c b/WPrefs.app/Configurations.c index 42ffd643..2baa5fb7 100644 --- a/WPrefs.app/Configurations.c +++ b/WPrefs.app/Configurations.c @@ -110,7 +110,7 @@ createImages(WMScreen *scr, RContext *rc, RImage *xis, char *file, { RImage *icon; char *path; - RColor gray = { 0xae, 0xaa, 0xae }; + RColor gray = { 0xae, 0xaa, 0xae, 0 }; *icon1 = NULL; *icon2 = NULL; diff --git a/WPrefs.app/Workspace.c b/WPrefs.app/Workspace.c index c9569e97..76eaa5e0 100644 --- a/WPrefs.app/Workspace.c +++ b/WPrefs.app/Workspace.c @@ -76,7 +76,7 @@ static void createImages(WMScreen * scr, RContext * rc, RImage * xis, char *file, WMPixmap ** icon1, WMPixmap ** icon2) { RImage *icon; - RColor gray = { 0xae, 0xaa, 0xae }; + RColor gray = { 0xae, 0xaa, 0xae, 0 }; *icon1 = WMCreatePixmapFromFile(scr, file); if (!*icon1) { diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c index b0f462cf..8efab90f 100644 --- a/WPrefs.app/editmenu.c +++ b/WPrefs.app/editmenu.c @@ -1143,9 +1143,9 @@ static WEditMenu *duplicateMenu(WEditMenu * menu) static void dragItem(WEditMenu * menu, WEditMenuItem * item, Bool copy) { - static XColor black = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue }; - static XColor green = { 0x0045b045, 0x4500, 0xb000, 0x4500, DoRed | DoGreen | DoBlue }; - static XColor back = { 0, 0xffff, 0xffff, 0xffff, DoRed | DoGreen | DoBlue }; + static XColor black = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 }; + static XColor green = { 0x0045b045, 0x4500, 0xb000, 0x4500, DoRed | DoGreen | DoBlue, 0 }; + static XColor back = { 0, 0xffff, 0xffff, 0xffff, DoRed | DoGreen | DoBlue, 0 }; Display *dpy = W_VIEW_DISPLAY(menu->view); WMScreen *scr = W_VIEW_SCREEN(menu->view); int x, y;