diff src/pan-item.c @ 1367:fe4da037be21

When g_new0() is used, drop redundant initializations to NULL, FALSE or 0, second pass.
author zas_
date Sun, 01 Mar 2009 23:14:19 +0000
parents e8f21b91885d
children b106af9689db
line wrap: on
line diff
--- a/src/pan-item.c	Sun Mar 01 21:35:18 2009 +0000
+++ b/src/pan-item.c	Sun Mar 01 23:14:19 2009 +0000
@@ -450,6 +450,7 @@
 	PanItem *pi;
 
 	pi = g_new0(PanItem, 1);
+	
 	pi->type = PAN_ITEM_THUMB;
 	pi->fd = fd;
 	pi->x = x;
@@ -457,10 +458,6 @@
 	pi->width = PAN_THUMB_SIZE + PAN_SHADOW_OFFSET * 2;
 	pi->height = PAN_THUMB_SIZE + PAN_SHADOW_OFFSET * 2;
 
-	pi->pixbuf = NULL;
-
-	pi->queued = FALSE;
-
 	pw->list = g_list_prepend(pw->list, pi);
 
 	return pi;
@@ -849,8 +846,6 @@
 	ta = g_new0(PanTextAlignment, 1);
 
 	ta->pw = pw;
-	ta->column1 = NULL;
-	ta->column2 = NULL;
 	ta->x = x;
 	ta->y = y;
 	ta->key = g_strdup(key);