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 -#include -#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 +#endif struct _GtkPlacesViewRow {