Ported from maser a minor fix to allow GTK2 compiling