The short answer to this question is: Don't write SUID/SGID programs with GTK+
For a more thorough explanation of the GTK+ Developers position on this issue see http://www.gtk.org/setuid.html.