forked from AuroraMiddleware/gtk
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:
parent
862007fe1c
commit
d589170754
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user