… | |
… | |
304 | return layer_set_attr_do(layer, attr, 0); |
304 | return layer_set_attr_do(layer, attr, 0); |
305 | } |
305 | } |
306 | |
306 | |
307 | struct itemgra * itemgra_new(struct attr *parent, struct attr **attrs) |
307 | struct itemgra * itemgra_new(struct attr *parent, struct attr **attrs) |
308 | { |
308 | { |
|
|
309 | |
|
|
310 | //dbg(0,"EEnter\n"); |
|
|
311 | |
309 | struct itemgra *itm; |
312 | struct itemgra *itm; |
310 | struct attr *order, *item_types, *speed_range, *angle_range, *sequence_range; |
313 | struct attr *order, *item_types, *speed_range, *angle_range, *sequence_range; |
311 | enum item_type *type; |
314 | enum item_type *type; |
312 | struct range defrange; |
315 | struct range defrange; |
313 | |
316 | |
… | |
… | |
342 | { |
345 | { |
343 | itm->type = g_list_append(itm->type, GINT_TO_POINTER(*type)); |
346 | itm->type = g_list_append(itm->type, GINT_TO_POINTER(*type)); |
344 | type++; |
347 | type++; |
345 | } |
348 | } |
346 | } |
349 | } |
|
|
350 | |
|
|
351 | //dbg(0,"return\n"); |
|
|
352 | |
347 | return itm; |
353 | return itm; |
348 | } |
354 | } |
349 | int itemgra_add_attr(struct itemgra *itemgra, struct attr *attr) |
355 | int itemgra_add_attr(struct itemgra *itemgra, struct attr *attr) |
350 | { |
356 | { |
351 | switch (attr->type) |
357 | switch (attr->type) |