I have tested this on ubuntu 12.04 with both gtk2 and gtk3. It works.Testing may be needed for minimal version of gtk2.