Fix r33266 to work with Gtk3 AND Gtk2. Backport.

git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/trunk@33273 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6