-
Neil Roberts authored
The code for implementing ClutterColor as GParamSpec and the color
↔ string transformation functions were assuming that ClutterColor owns the data in the GValue struct and directly reading data[0].v_pointer to get a pointer to the color. However ClutterColor is actually a boxed type and the format of the data array is meant to be internal to GObject so it is not safe to poke around in it directly. This patch changes it to use g_value_get_boxed to get the pointer. Also, boxed types allow a NULL value to be stored and not all of the code was coping with this. This patch also attempts to fix that. http://bugzilla.openedhand.com/show_bug.cgi?id=2068f4ee7dc0