From 4d1a6538abbe2e979492861bf6b2ff676ed854a1 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 26 Apr 2002 20:11:09 +0000 Subject: Initialize these struct members individually instead of as a struct. 2002-04-26 Christopher James Lahey * gal/widgets/e-canvas-background.c (ecb_init): Initialize these struct members individually instead of as a struct. svn path=/trunk/; revision=16600 --- widgets/misc/e-canvas-background.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/misc/e-canvas-background.c b/widgets/misc/e-canvas-background.c index 36b84635ed..791caf1bcc 100644 --- a/widgets/misc/e-canvas-background.c +++ b/widgets/misc/e-canvas-background.c @@ -309,7 +309,10 @@ ecb_init (GnomeCanvasItem *item) ecb->priv = g_new (ECanvasBackgroundPrivate, 1); - ecb->priv->color = (GdkColor) {0,}; + ecb->priv->color.pixel = 0; + ecb->priv->color.red = 0; + ecb->priv->color.green = 0; + ecb->priv->color.blue = 0; ecb->priv->stipple = NULL; ecb->priv->gc = NULL; ecb->priv->x1 = -1.0; -- cgit v1.2.3