diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-11-10 13:49:11 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-11-10 13:49:11 +0000 |
commit | d589170754af9620feabb0e598b626116470557f (patch) | |
tree | da2fa0741b114a01b86aef5a5aea240002ffe303 /gtk/gtkplacesviewrow.c | |
parent | 862007fe1c33948d78e1abf208d94d54490eee5c (diff) | |
download | gtk+-d589170754af9620feabb0e598b626116470557f.tar.gz |
Only include the necessary headers in GtkPlacesViewRow
When compiling inside GTK we also use the GTK_COMPILATION guard, as the
GtkPlacesView and GtkPlacesViewRow widgets are shared with Nautilus.
Diffstat (limited to 'gtk/gtkplacesviewrow.c')
-rw-r--r-- | gtk/gtkplacesviewrow.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gtk/gtkplacesviewrow.c b/gtk/gtkplacesviewrow.c index 3466053e4f..e8ac7a8d6c 100644 --- a/gtk/gtkplacesviewrow.c +++ b/gtk/gtkplacesviewrow.c @@ -19,11 +19,24 @@ #include "config.h" #include <gio/gio.h> -#include <gtk/gtk.h> -#include "gtkintl.h" #include "gtkplacesviewrowprivate.h" + +/* As this widget is shared with Nautilus, we use this guard to + * ensure that internally we only include the files that we need + * instead of including gtk.h + */ +#ifdef GTK_COMPILATION +#include "gtkbutton.h" +#include "gtkeventbox.h" +#include "gtkimage.h" +#include "gtkintl.h" +#include "gtklabel.h" +#include "gtkspinner.h" #include "gtktypebuiltins.h" +#else +#include <gtk/gtk.h> +#endif struct _GtkPlacesViewRow { |