diff --git a/gtk/deprecated/gtkhsv.c b/gtk/deprecated/gtkhsv.c index f3befe42f3..ad09515336 100644 --- a/gtk/deprecated/gtkhsv.c +++ b/gtk/deprecated/gtkhsv.c @@ -37,6 +37,7 @@ #include "gtkhsv.h" #include "gtkbindings.h" #include "gtkmarshalers.h" +#include "gtkstylecontext.h" #include "gtktypebuiltins.h" #include "gtkintl.h" diff --git a/gtk/deprecated/gtktearoffmenuitem.c b/gtk/deprecated/gtktearoffmenuitem.c index 99f5f0918b..d5528bbc32 100644 --- a/gtk/deprecated/gtktearoffmenuitem.c +++ b/gtk/deprecated/gtktearoffmenuitem.c @@ -26,6 +26,7 @@ #include "gtkmenuprivate.h" #include "gtkmenuitemprivate.h" +#include "gtkstylecontext.h" #include "gtktearoffmenuitem.h" #include "gtkintl.h" diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index c863b568e8..04b9471094 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -28,6 +28,7 @@ #include "gtkaccelgroup.h" #include "gtkaccelmap.h" #include "gtkintl.h" +#include "gtksettings.h" #include #ifdef GDK_WINDOWING_X11 diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c index cd78b6cc3c..18313e693f 100644 --- a/gtk/gtkassistant.c +++ b/gtk/gtkassistant.c @@ -66,6 +66,7 @@ #include "gtknotebook.h" #include "gtkimage.h" #include "gtklabel.h" +#include "gtksettings.h" #include "gtksizegroup.h" #include "gtksizerequest.h" #include "gtkstock.h" diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c index da50fde427..4cbbeaf6aa 100644 --- a/gtk/gtkbindings.c +++ b/gtk/gtkbindings.c @@ -31,6 +31,7 @@ #include "gtkbindingsprivate.h" #include "gtkkeyhash.h" +#include "gtkstylecontext.h" #include "gtkwidget.h" #include "gtkintl.h" diff --git a/gtk/gtkcellrendererspinner.c b/gtk/gtkcellrendererspinner.c index 1aedcca859..e6a41597a8 100644 --- a/gtk/gtkcellrendererspinner.c +++ b/gtk/gtkcellrendererspinner.c @@ -30,8 +30,9 @@ #include "gtkcellrendererspinner.h" #include "gtkiconfactory.h" #include "gtkicontheme.h" -#include "gtktypebuiltins.h" #include "gtkintl.h" +#include "gtksettings.h" +#include "gtktypebuiltins.h" #undef GDK_DEPRECATED #undef GDK_DEPRECATED_FOR diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c index 4947e72285..8cbbf21541 100644 --- a/gtk/gtkcoloreditor.c +++ b/gtk/gtkcoloreditor.c @@ -39,6 +39,7 @@ #include "gtklabel.h" #include "gtkspinbutton.h" #include "gtkintl.h" +#include "gtkstylecontext.h" #include diff --git a/gtk/gtkcolorplaneprivate.h b/gtk/gtkcolorplaneprivate.h index 34bf2ad2cb..560e892f78 100644 --- a/gtk/gtkcolorplaneprivate.h +++ b/gtk/gtkcolorplaneprivate.h @@ -22,6 +22,7 @@ #ifndef __GTK_COLOR_PLANE_H__ #define __GTK_COLOR_PLANE_H__ +#include #include G_BEGIN_DECLS diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 452a468084..87b46a3e51 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -39,6 +39,7 @@ #include "gtkbindings.h" #include "gtkprivate.h" #include "gtkbuildable.h" +#include "gtksettings.h" /** * SECTION:gtkdialog diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c index 1f721b5825..912992bfe8 100644 --- a/gtk/gtkdrawingarea.c +++ b/gtk/gtkdrawingarea.c @@ -25,6 +25,7 @@ #include "config.h" #include "gtkdrawingarea.h" #include "gtkintl.h" +#include "gtkstylecontext.h" /** diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 002fea5b8e..d1e2d2eed0 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -54,6 +54,7 @@ #include "gtktypebuiltins.h" #include "gtkprivate.h" +#include "gtksettings.h" /** diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 455c61c2f6..7559d2d453 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -39,7 +39,7 @@ #include "gtkfilesystem.h" #include "gtkfilesystemmodel.h" #include "gtkframe.h" -#include "gtkpaned.h" +#include "gtkgrid.h" #include "gtkiconfactory.h" #include "gtkicontheme.h" #include "gtkimage.h" @@ -49,6 +49,7 @@ #include "gtkmarshalers.h" #include "gtkmessagedialog.h" #include "gtkmountoperation.h" +#include "gtkpaned.h" #include "gtkpathbar.h" #include "gtkprivate.h" #include "gtkradiobutton.h" @@ -56,10 +57,10 @@ #include "gtkrecentmanager.h" #include "gtkscrolledwindow.h" #include "gtkseparatormenuitem.h" +#include "gtksettings.h" #include "gtksizegroup.h" #include "gtksizerequest.h" #include "gtkstock.h" -#include "gtkgrid.h" #include "gtktoolbar.h" #include "gtktoolbutton.h" #include "gtktooltip.h" diff --git a/gtk/gtkiconfactory.h b/gtk/gtkiconfactory.h index a40af425e0..8e49e62de4 100644 --- a/gtk/gtkiconfactory.h +++ b/gtk/gtkiconfactory.h @@ -30,9 +30,8 @@ #define __GTK_ICON_FACTORY_H__ #include -#include #include -#include +#include G_BEGIN_DECLS @@ -50,12 +49,6 @@ typedef struct _GtkIconFactory GtkIconFactory; typedef struct _GtkIconFactoryPrivate GtkIconFactoryPrivate; typedef struct _GtkIconFactoryClass GtkIconFactoryClass; -typedef struct _GtkIconSet GtkIconSet; -typedef struct _GtkIconSource GtkIconSource; - -typedef struct _GtkStyle GtkStyle; -typedef struct _GtkRcStyle GtkRcStyle; - struct _GtkIconFactory { GObject parent_instance; diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c index ada2bdeb48..2b887b9607 100644 --- a/gtk/gtkimmulticontext.c +++ b/gtk/gtkimmulticontext.c @@ -22,12 +22,13 @@ #include "gtkimmulticontext.h" #include "gtkimmoduleprivate.h" +#include "gtkintl.h" #include "gtklabel.h" #include "gtkmain.h" +#include "gtkprivate.h" #include "gtkradiomenuitem.h" #include "gtkseparatormenuitem.h" -#include "gtkintl.h" -#include "gtkprivate.h" +#include "gtksettings.h" /** diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 3d70ed6f92..5a7b166748 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -40,6 +40,7 @@ #include "gtkactivatable.h" #include "gtkwidgetprivate.h" #include "gtkintl.h" +#include "gtksettings.h" #include "gtktypebuiltins.h" #include "a11y/gtkmenuitemaccessible.h" diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index d8b9f9e526..101f884f78 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -22,17 +22,18 @@ #include -#include "gtktogglebutton.h" #include "gtkarrow.h" +#include "gtkbox.h" #include "gtkdnd.h" +#include "gtkiconfactory.h" +#include "gtkicontheme.h" #include "gtkimage.h" #include "gtkintl.h" -#include "gtkicontheme.h" -#include "gtkiconfactory.h" #include "gtklabel.h" -#include "gtkbox.h" #include "gtkmain.h" #include "gtkmarshalers.h" +#include "gtksettings.h" +#include "gtktogglebutton.h" enum { diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c index 0afdc09687..da72129706 100644 --- a/gtk/gtkseparatormenuitem.c +++ b/gtk/gtkseparatormenuitem.c @@ -23,8 +23,11 @@ */ #include "config.h" + #include "gtkseparatormenuitem.h" +#include "gtkstylecontext.h" + /** * SECTION:gtkseparatormenuitem * @Short_description: A separator used in menus diff --git a/gtk/gtksettings.h b/gtk/gtksettings.h index 8ada711858..4a33093377 100644 --- a/gtk/gtksettings.h +++ b/gtk/gtksettings.h @@ -23,6 +23,7 @@ #define __GTK_SETTINGS_H__ #include +#include G_BEGIN_DECLS @@ -37,17 +38,11 @@ G_BEGIN_DECLS /* --- typedefs --- */ -typedef struct _GtkSettings GtkSettings; typedef struct _GtkSettingsPrivate GtkSettingsPrivate; typedef struct _GtkSettingsClass GtkSettingsClass; typedef struct _GtkSettingsValue GtkSettingsValue; -typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec, - const GString *rc_string, - GValue *property_value); - - /* --- structures --- */ struct _GtkSettings { diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c index ce336d8f38..532ed07b33 100644 --- a/gtk/gtkspinner.c +++ b/gtk/gtkspinner.c @@ -29,10 +29,11 @@ #include "config.h" -#include "gtkintl.h" -#include "gtkaccessible.h" -#include "gtkimage.h" #include "gtkspinner.h" + +#include "gtkimage.h" +#include "gtkintl.h" +#include "gtkstylecontext.h" #include "a11y/gtkspinneraccessible.h" diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 5cbebec18a..a46be6fa54 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -36,6 +36,7 @@ #include "gtkiconfactory.h" #include "gtkwidgetprivate.h" #include "gtkstyleproviderprivate.h" +#include "gtksettings.h" /** * SECTION:gtkstylecontext diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index dc528ef8dc..65725374fa 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -22,11 +22,10 @@ #ifndef __GTK_STYLE_CONTEXT_H__ #define __GTK_STYLE_CONTEXT_H__ -#include +#include #include #include -#include -#include +#include #include G_BEGIN_DECLS @@ -38,7 +37,6 @@ G_BEGIN_DECLS #define GTK_IS_STYLE_CONTEXT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_STYLE_CONTEXT)) #define GTK_STYLE_CONTEXT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextClass)) -typedef struct _GtkStyleContext GtkStyleContext; typedef struct _GtkStyleContextClass GtkStyleContextClass; typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate; diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 84c80e6171..eaf94b8dd1 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -30,7 +30,9 @@ #include "gtklabel.h" #include "gtkimage.h" #include "gtkbox.h" +#include "gtksettings.h" #include "gtksizerequest.h" +#include "gtkstylecontext.h" #include "gtkwindowprivate.h" diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 0f47c07bee..c22eeb1bcc 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -48,6 +48,7 @@ #include "gtkstylecontextprivate.h" #include "gtktypebuiltins.h" #include "gtkmain.h" +#include "gtksettings.h" #include "a11y/gtktreeviewaccessible.h" diff --git a/gtk/gtktypes.h b/gtk/gtktypes.h index 67554557b9..a14457879a 100644 --- a/gtk/gtktypes.h +++ b/gtk/gtktypes.h @@ -29,18 +29,27 @@ #ifndef __GTK_TYPES_H__ #define __GTK_TYPES_H__ -#include - G_BEGIN_DECLS typedef struct _GtkClipboard GtkClipboard; +typedef struct _GtkIconSet GtkIconSet; +typedef struct _GtkIconSource GtkIconSource; +typedef struct _GtkRcStyle GtkRcStyle; typedef struct _GtkRequisition GtkRequisition; typedef struct _GtkSelectionData GtkSelectionData; +typedef struct _GtkSettings GtkSettings; +typedef struct _GtkStyle GtkStyle; +typedef struct _GtkStyleContext GtkStyleContext; typedef struct _GtkTooltip GtkTooltip; typedef struct _GtkWidget GtkWidget; typedef struct _GtkWidgetPath GtkWidgetPath; typedef struct _GtkWindow GtkWindow; + +typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec, + const GString *rc_string, + GValue *property_value); + G_END_DECLS #endif /* __GTK_TYPES_H__ */ diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index c234d4d8dd..5a4ac4ff42 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -31,10 +31,7 @@ #include #include -#include #include -#include -#include #include #include