GNOME Bugzilla – Bug 561562
Single-includes for glib and GTK
Last modified: 2008-11-20 18:44:51 UTC
I'm working on implementing http://live.gnome.org/GnomeGoals/CleanupGTKIncludes
Created attachment 123056 [details] [review] patch for this bug
#include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> -#include <gdk/gdkspawn.h> +#include <gdk/gdk.h> Hm... Spot anything wrong? +#include <glib.h> That should be glib/glib.h, shouldn't it? Also, does the package still compile with the minimum version of glib and gtk+ given in configure.in after these changes, or do we need to bump the requirements?
(In reply to comment #2) > #include <gdk/gdk.h> > #include <gdk/gdkkeysyms.h> > -#include <gdk/gdkspawn.h> > +#include <gdk/gdk.h> > > Hm... Spot anything wrong? > > +#include <glib.h> > > That should be glib/glib.h, shouldn't it? No Error message: "Only <glib.h> can be included directly." > > Also, does the package still compile with the minimum version of glib and gtk+ > given in configure.in after these changes, or do we need to bump the > requirements? > Yes, It's compile with min version og glib and gtk+.
Ok, committed minus the duplicate gdk.h inclusion. Thanks. 2008-11-20 Jens Granseuer <...> Patch by: Maxim Ermilov <...> capplets/sound/mixer-support.[ch]: capplets/appearance/*.[ch]: capplets/common/*.[ch]: capplets/keybindings/egg*.[ch]: capplets/keyboard/gnome-keyboard-properties-a11y.h: shell/control-center.c: typing-break/*.[ch]: only include top-level headers for glib and GTK+ (bug #561562)