From e17e9b3bab8296f9cddea1a9c2d43bf3e95a375e Mon Sep 17 00:00:00 2001 From: Luis Menina Date: Wed, 24 Jun 2009 01:22:22 +0200 Subject: [Goal] Clean up GLib and GTK+ includes (Fixes #563764) Allows to compile with G_DISABLE_SINGLE_INCLUDES, GDK_PIXBUF_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES. This prepares for the GNOME 3.0 transition. --- colorblind/keybinder/eggaccelerators.h | 2 +- colorblind/keybinder/tomboykeybinder.c | 1 - colorblind/keybinder/tomboykeybinder.h | 2 +- magnifier/magnifier-main.c | 2 +- magnifier/magnifier-private.h | 11 +++-------- magnifier/magnifier.c | 2 +- magnifier/zoom-region.c | 9 +++++---- 7 files changed, 12 insertions(+), 17 deletions(-) diff --git a/colorblind/keybinder/eggaccelerators.h b/colorblind/keybinder/eggaccelerators.h index e4df317..8cf97cd 100644 --- a/colorblind/keybinder/eggaccelerators.h +++ b/colorblind/keybinder/eggaccelerators.h @@ -21,7 +21,7 @@ #ifndef __EGG_ACCELERATORS_H__ #define __EGG_ACCELERATORS_H__ -#include +#include #include G_BEGIN_DECLS diff --git a/colorblind/keybinder/tomboykeybinder.c b/colorblind/keybinder/tomboykeybinder.c index b188958..5685dea 100644 --- a/colorblind/keybinder/tomboykeybinder.c +++ b/colorblind/keybinder/tomboykeybinder.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include diff --git a/colorblind/keybinder/tomboykeybinder.h b/colorblind/keybinder/tomboykeybinder.h index 6923bd0..1a04da3 100644 --- a/colorblind/keybinder/tomboykeybinder.h +++ b/colorblind/keybinder/tomboykeybinder.h @@ -2,7 +2,7 @@ #ifndef __TOMBOY_KEY_BINDER_H__ #define __TOMBOY_KEY_BINDER_H__ -#include +#include G_BEGIN_DECLS diff --git a/magnifier/magnifier-main.c b/magnifier/magnifier-main.c index 481fa91..a2f89a1 100644 --- a/magnifier/magnifier-main.c +++ b/magnifier/magnifier-main.c @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include diff --git a/magnifier/magnifier-private.h b/magnifier/magnifier-private.h index 3e78f4c..318362f 100644 --- a/magnifier/magnifier-private.h +++ b/magnifier/magnifier-private.h @@ -23,12 +23,9 @@ #ifndef MAGNIFIER_PRIVATE_H_ #define MAGNIFIER_PRIVATE_H_ +G_BEGIN_DECLS -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#include +#include struct _MagnifierPrivate { GtkWidget *w; @@ -49,8 +46,6 @@ struct _MagnifierPrivate { GHashTable *cursorlist; }; -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* MAGNIFIER_PRIVATE_H_ */ diff --git a/magnifier/magnifier.c b/magnifier/magnifier.c index d89bb06..c51d6c1 100644 --- a/magnifier/magnifier.c +++ b/magnifier/magnifier.c @@ -36,7 +36,7 @@ #include #include -#include +#include #include #include #include diff --git a/magnifier/zoom-region.c b/magnifier/zoom-region.c index ecd52ab..add7a0a 100644 --- a/magnifier/zoom-region.c +++ b/magnifier/zoom-region.c @@ -26,18 +26,19 @@ #include #include #include + #ifdef HAVE_COLORBLIND #include #endif /* HAVE_COLORBLIND */ -#include + +#include #include + #ifdef USE_GDKPIXBUF_RENDER_TO_DRAWABLE #include -#else -#include #endif + #include -#include #include #include -- cgit v1.2.3