GNOME Bugzilla – Bug 563413
GNOME Goal: Clean up GLib and GTK+ includes
Last modified: 2011-04-26 13:40:30 UTC
This is an umbrella bug to track applications or libraries that don't include *only* toplevel headers for GLib, GTK, GDK and gdk-pixbuf. This will be useful to prepare GTK 3.0 migration. See also http://live.gnome.org/GnomeGoals/CleanupGTKIncludes
> *only* toplevel headers for GLib, GTK, GDK and gdk-pixbuf What am I supposed to do with, for example, gdk/gdkkeysyms.h and glib/gi18n-lib.h? These are not included by the top-level header file.
Leave them and compile with G_DISABLE_SINGLE_INCLUDES, GDK_PIXBUF_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES defined. If you compiler doesn't complain, and no error is reported, then it's fine to leave them. AFAIR, these are special case and should stay.
This really has to be documented somewhere. Using the svn flavour of the day plus a compiler is not a reasonable API description!
telepathy-mission-control-bug: http://sourceforge.net/tracker/?func=detail&aid=2806054&group_id=190214&atid=932444
Thanks to all the people who worked hard on this. I'm closing this bug as all the bugs it depended on have been closed.