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.
This commit is contained in:
Emmanuele Bassi 2015-11-10 13:49:11 +00:00
parent 862007fe1c
commit d589170754

View File

@ -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
{