Compatibility fix for Gtk+ < 2.6