I would never create a new graphics context inside a configure event handler, and it seems you forgot to unref it too. Best to do it once, and set the colour values directly in the GC so you don't need the intermediate step via Gra_Con_Vals. Manuel