mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
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