gtk3: deprecated api, memory leak, unused variables