Make fix for bug 771 compatible with GTK1