GNOME Bugzilla – Bug 589765
Clean up GTK+ and Glib non-toplevel includes
Last modified: 2010-03-24 20:33:33 UTC
Balsa uses non toplevel header includes for Glib/Gtk. These should be removed for GTK3. See http://live.gnome.org/GnomeGoals/CleanupGTKIncludes
Hi André: Thanks for reviewing Balsa! I tried building with make CFLAGS+="-DG_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" and the only errors were from indirect includes of gtksourceview.h and unique.h. Balsa does have non toplevel includes: glib/gi18n.h glib/gstdio.h gdk/gdkfont.h gdk/gdkkeysyms.h but none of them raises an error with those CFLAGS. Should we assume they're permitted? (Actually, including gdk/gdkfont.h seems redundant--will remove it.) Peter
Hmm... sorry, no idea either. :-/
I get the same problems when compiling the another (my own) GtkSourceView dependent project with the CFLAGS suggested for GTK3 compatibility. My guess is that this bug should be attributed to GtkSourceView package
GtkSourceView devs are aware of the problem: https://bugzilla.gnome.org/show_bug.cgi?id=563786
I reviewed the balsa code and this bug can be closed as fixed. I've updated the http://live.gnome.org/GnomeGoals/CleanupGTKIncludes and the Glib/GTK+ documentation with more accurate info about the permitted includes
(In reply to comment #5) > I reviewed the balsa code and this bug can be closed as fixed. > > I've updated the http://live.gnome.org/GnomeGoals/CleanupGTKIncludes and the > Glib/GTK+ documentation with more accurate info about the permitted includes Thanks for the care and attention! Balsa still doesn't build with -DGTK_DISABLE_SINGLE_INCLUDES because of GtkSourceView, but I understand that's a problem only until the next release. On to 3.0!
Hey Peter! The GtkSourceView problem is already fixed, I've committed some patches some time ago. ( see bug #563786 ) I think you have to wait to the next GtkSourceView release ;)
gtkhtml2 has related issues as well...
(In reply to comment #8) > gtkhtml2 has related issues as well... Aargh... I didn't test that before committing a configure.in patch to add those single-include defines to DEFS. To handle GtkSourceView, I just put in a test for the upcoming version, but for gtkhtml2...??? Probably best just to leave out -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES if gtkhtml2 is configured, right?