gtk3: build warnings

deprecated api
type casting
unused variable