1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-01 11:32:34 +01:00

Add missing initializers

This commit is contained in:
Tamas TEVESZ
2010-04-12 11:46:23 +02:00
committed by Carlos R. Mafra
parent 4247ac9f82
commit 62f4eff7ae
5 changed files with 8 additions and 7 deletions

View File

@@ -1600,8 +1600,8 @@ static Cursor magnifyGrabPointer(W_ColorPanel * panel)
W_Screen *scr = WMWidgetScreen(panel->win); W_Screen *scr = WMWidgetScreen(panel->win);
Pixmap magPixmap, magPixmap2; Pixmap magPixmap, magPixmap2;
Cursor magCursor; Cursor magCursor;
XColor fgColor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue }; XColor fgColor = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 };
XColor bgColor = { 0, 0xbf00, 0xa000, 0x5000, DoRed | DoGreen | DoBlue }; XColor bgColor = { 0, 0xbf00, 0xa000, 0x5000, DoRed | DoGreen | DoBlue, 0 };
/* Cursor creation stuff */ /* Cursor creation stuff */
magPixmap = XCreatePixmapFromBitmapData(scr->display, W_DRAWABLE(scr), magPixmap = XCreatePixmapFromBitmapData(scr->display, W_DRAWABLE(scr),

View File

@@ -1759,6 +1759,7 @@ W_ViewDelegate _TextViewDelegate = {
NULL, NULL,
textDidResize, textDidResize,
NULL, NULL,
NULL
}; };
#define TEXT_BUFFER_INCR 8 #define TEXT_BUFFER_INCR 8

View File

@@ -110,7 +110,7 @@ createImages(WMScreen *scr, RContext *rc, RImage *xis, char *file,
{ {
RImage *icon; RImage *icon;
char *path; char *path;
RColor gray = { 0xae, 0xaa, 0xae }; RColor gray = { 0xae, 0xaa, 0xae, 0 };
*icon1 = NULL; *icon1 = NULL;
*icon2 = NULL; *icon2 = NULL;

View File

@@ -76,7 +76,7 @@ static void
createImages(WMScreen * scr, RContext * rc, RImage * xis, char *file, WMPixmap ** icon1, WMPixmap ** icon2) createImages(WMScreen * scr, RContext * rc, RImage * xis, char *file, WMPixmap ** icon1, WMPixmap ** icon2)
{ {
RImage *icon; RImage *icon;
RColor gray = { 0xae, 0xaa, 0xae }; RColor gray = { 0xae, 0xaa, 0xae, 0 };
*icon1 = WMCreatePixmapFromFile(scr, file); *icon1 = WMCreatePixmapFromFile(scr, file);
if (!*icon1) { if (!*icon1) {

View File

@@ -1143,9 +1143,9 @@ static WEditMenu *duplicateMenu(WEditMenu * menu)
static void dragItem(WEditMenu * menu, WEditMenuItem * item, Bool copy) static void dragItem(WEditMenu * menu, WEditMenuItem * item, Bool copy)
{ {
static XColor black = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue }; static XColor black = { 0, 0, 0, 0, DoRed | DoGreen | DoBlue, 0 };
static XColor green = { 0x0045b045, 0x4500, 0xb000, 0x4500, DoRed | DoGreen | DoBlue }; static XColor green = { 0x0045b045, 0x4500, 0xb000, 0x4500, DoRed | DoGreen | DoBlue, 0 };
static XColor back = { 0, 0xffff, 0xffff, 0xffff, DoRed | DoGreen | DoBlue }; static XColor back = { 0, 0xffff, 0xffff, 0xffff, DoRed | DoGreen | DoBlue, 0 };
Display *dpy = W_VIEW_DISPLAY(menu->view); Display *dpy = W_VIEW_DISPLAY(menu->view);
WMScreen *scr = W_VIEW_SCREEN(menu->view); WMScreen *scr = W_VIEW_SCREEN(menu->view);
int x, y; int x, y;