Bug 705182 Reset Cocoa IME state when immodule is reset

Commits the pre-edit string on receipt of focus_out and reset
commands.
Patch refinements by Cody Russell <bratsche@gnome.org> and
Ek Kato <ek.kato@gmail.com>
Fix a crasher that was introduced by 9ca802161ec6387419d160f21fe477008a567477
due to preedit_str being initialized as an empty string rather than NULL.
Bug 705750 Quartz input method doesn't work correctly for Chinese characters
combobox: Add missing Since tags for entry constructors
Merge branch 'gtk-2-24' of git://git.gnome.org/gtk+ into gtk-2-24