From: Matthias Clasen Date: Sun, 19 Feb 2023 03:54:45 +0000 (-0500) Subject: Drop some unnecessary includes X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~6^2~58^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ca6642deed762e07f1a145b21a4b31ae821ac9f2;p=gtk4.git Drop some unnecessary includes --- diff --git a/gtk/deprecated/gtkcellrendererpixbuf.c b/gtk/deprecated/gtkcellrendererpixbuf.c index 994acf61af..d6a188cd12 100644 --- a/gtk/deprecated/gtkcellrendererpixbuf.c +++ b/gtk/deprecated/gtkcellrendererpixbuf.c @@ -20,7 +20,6 @@ #include "gtkcellrendererpixbuf.h" #include "gtkiconhelperprivate.h" -#include "gtkicontheme.h" #include "gtkprivate.h" #include "gtksnapshot.h" #include "gtkstylecontextprivate.h" diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index e6c5d3e882..1160f8cf9c 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -36,22 +36,15 @@ #include "gtkbutton.h" #include "gtkgrid.h" #include "gtkbox.h" -#include "gtkicontheme.h" #include "gtkimage.h" #include "gtklabel.h" #include "gtkmarshalers.h" #include "gtkstack.h" -#include "gtkorientable.h" -#include "gtkscrolledwindow.h" #include "gtktextview.h" -#include "gtkmain.h" -#include "gtktogglebutton.h" #include "gtktypebuiltins.h" #include "gtkstack.h" -#include "gtkstackswitcher.h" #include "gtksettings.h" #include "gtkurilauncher.h" -#include "gtkheaderbar.h" #include "gtkprivate.h" #include #include "gtkeventcontrollermotion.h" diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index 97a09ff0ca..f7a9125a0d 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -23,10 +23,6 @@ #include "gtkapplication.h" #include "gdkprofilerprivate.h" -#ifdef G_OS_UNIX -#include -#endif - #include #ifdef HAVE_UNISTD_H @@ -36,10 +32,8 @@ #include "gtkapplicationprivate.h" #include "gtkmarshalers.h" #include "gtkmain.h" -#include "gtkrecentmanager.h" #include "gtkicontheme.h" #include "gtkbuilder.h" -#include "gtkshortcutswindow.h" #include "gtkprivate.h" /* NB: please do not add backend-specific GDK headers here. This should diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index 155d6f899f..9ac02dee2e 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -24,16 +24,11 @@ #include "gtkapplicationprivate.h" #include "gtkwidgetprivate.h" #include "gtkwindowprivate.h" -#include "gtkheaderbar.h" #include "gtkpopovermenubar.h" #include "gtksettings.h" #include "gtkshortcutswindowprivate.h" #include "gtktooltipprivate.h" -#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__) -#include -#endif - /** * GtkApplicationWindow: * diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 2fe78c1320..a1ae76fa8f 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -67,7 +67,6 @@ #include "gtkorientable.h" #include "gtkprivate.h" #include "gtktypebuiltins.h" -#include "gtksizerequest.h" #include "gtkwidgetprivate.h" diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index 40dea50c08..1ae1f3e81a 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -216,13 +216,10 @@ #include "gtkdebug.h" #include "gtkexpression.h" #include "gtkmain.h" -#include "gtkicontheme.h" #include "gtkprivate.h" #include "gtkshortcutactionprivate.h" #include "gtkshortcuttrigger.h" -#include "gtktestutils.h" #include "gtktypebuiltins.h" -#include "gtkicontheme.h" #include "gtkiconthemeprivate.h" #include "gtkdebug.h" diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index aca4d337f8..dda8c194ee 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -69,7 +69,6 @@ #include "gtkbinlayout.h" #include "gtkimage.h" #include "gtklabel.h" -#include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkprivate.h" #include "gtktypebuiltins.h" diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 7a619cfa85..fedb88e4b4 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -114,7 +114,6 @@ #include "gtkeventcontrollerfocus.h" #include "gtkdragsource.h" #include "gtknative.h" -#include "gtkicontheme.h" #include "gtkdragicon.h" #include "gtkbutton.h" #include "gtkbox.h" diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index 4dec0530ce..7b45cdf91f 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -29,7 +29,6 @@ #include "gtkactionhelperprivate.h" #include "gtkboxlayout.h" #include "gtkbuiltiniconprivate.h" -#include "gtkcssnumbervalueprivate.h" #include "gtkgestureclick.h" #include #include "gtklabel.h" @@ -37,7 +36,6 @@ #include "gtkshortcuttrigger.h" #include "gtkcssnodeprivate.h" #include "gtkwidgetprivate.h" -#include "gtkmodelbuttonprivate.h" /** * GtkCheckButton: diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c index 6bce4f3d61..39006314b2 100644 --- a/gtk/gtkcolorswatch.c +++ b/gtk/gtkcolorswatch.c @@ -26,7 +26,6 @@ #include "gtkgesturelongpress.h" #include "gtkgestureclick.h" #include "gtkgesturesingle.h" -#include "gtkicontheme.h" #include "gtkimage.h" #include #include "gtkmain.h" diff --git a/gtk/gtkcssimagerecolor.c b/gtk/gtkcssimagerecolor.c index d640f8aaa9..62ca62790c 100644 --- a/gtk/gtkcssimagerecolor.c +++ b/gtk/gtkcssimagerecolor.c @@ -23,7 +23,6 @@ #include "gtkcssimageprivate.h" #include "gtkcsspalettevalueprivate.h" #include "gtkcsscolorvalueprivate.h" -#include "gtkiconthemeprivate.h" #include "gdkpixbufutilsprivate.h" #include "gtkstyleproviderprivate.h" diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c index 9703f6a902..4cb54cef63 100644 --- a/gtk/gtkdragsource.c +++ b/gtk/gtkdragsource.c @@ -35,7 +35,6 @@ #include "gtkdragicon.h" #include "gtkprivate.h" #include "gtkmarshalers.h" -#include "gtkicontheme.h" #include "gtkpicture.h" #include "gtksettingsprivate.h" #include "gtkgesturesingle.h" diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 23b6868064..1c0798ff97 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -32,8 +32,6 @@ #include "gtkaccessibleprivate.h" #include "gtkadjustment.h" -#include "gtkbox.h" -#include "gtkbutton.h" #include "deprecated/gtkcelleditable.h" #include "gtkdebug.h" #include "gtkeditable.h" @@ -41,25 +39,19 @@ #include "gtkemojicompletion.h" #include "gtkentrybuffer.h" #include "gtkgesturedrag.h" -#include "gtkimageprivate.h" -#include "gtkimcontextsimple.h" #include #include "gtklabel.h" #include "gtkmain.h" #include "gtkmarshalers.h" #include "gtkpangoprivate.h" -#include "gtkpopover.h" #include "gtkprivate.h" #include "gtkprogressbar.h" -#include "gtksettings.h" #include "gtksnapshot.h" #include "gtktextprivate.h" -#include "gtktexthandleprivate.h" #include "gtktextutilprivate.h" #include "gtktooltip.h" #include "gtktypebuiltins.h" #include "gtkwidgetprivate.h" -#include "gtkwindow.h" #include "gtknative.h" #include "gtkgestureclick.h" #include "gtkdragsourceprivate.h" diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 775c40554f..70276967e5 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -60,10 +60,8 @@ #include "gtksizegroup.h" #include "gtksizerequest.h" #include "gtkstack.h" -#include "gtktooltip.h" #include "gtkbox.h" #include "gtkcheckbutton.h" -#include "gtkwindowgroup.h" #include #include "gtkfilelauncher.h" #include "gtkmain.h" @@ -71,8 +69,6 @@ #include "gtkpopover.h" #include "gtkrevealer.h" #include "gtkspinner.h" -#include "gtkseparator.h" -#include "gtkmodelbuttonprivate.h" #include "gtkeventcontrollerkey.h" #include "gtkdebug.h" #include "gtkfilechoosererrorstackprivate.h" @@ -86,7 +82,6 @@ #include "gtkshortcuttrigger.h" #include "gtkshortcutaction.h" #include "gtkshortcut.h" -#include "gtkstringlist.h" #include "gtkfilterlistmodel.h" #include "gtkcustomfilter.h" #include "gtkcustomsorter.h" diff --git a/gtk/gtkfontchooserdialog.c b/gtk/gtkfontchooserdialog.c index 432da2f543..3fe543f33f 100644 --- a/gtk/gtkfontchooserdialog.c +++ b/gtk/gtkfontchooserdialog.c @@ -26,7 +26,6 @@ #include "deprecated/gtkfontchooserwidget.h" #include "gtkfontchooserwidgetprivate.h" #include "gtkfontchooserutils.h" -#include "gtkbox.h" #include #include "gtkbuildable.h" #include "gtkprivate.h" diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 1044409617..671ab59f0b 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -26,9 +26,7 @@ #include "gtkbuildable.h" #include "gtkcenterbox.h" #include "gtklabel.h" -#include "gtknative.h" #include "gtkprivate.h" -#include "gtksizerequest.h" #include "gtktypebuiltins.h" #include "gtkwidgetprivate.h" #include "gtkwindowcontrols.h" diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index d8864fdc17..bf3f6a1e07 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -27,7 +27,6 @@ #include "gtkimageprivate.h" #include "gtkiconhelperprivate.h" -#include "gtkicontheme.h" #include "gtkprivate.h" #include "gtksnapshot.h" #include "gtktypebuiltins.h" diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index eb0319a917..70a1a1084e 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -52,7 +52,6 @@ #include -#include "gtkbox.h" #include "gtkdebug.h" #include "gtkdropprivate.h" #include "gtkmain.h" @@ -60,7 +59,6 @@ #include "gtkmodulesprivate.h" #include "gtkprivate.h" #include "gtkrecentmanager.h" -#include "gtksettingsprivate.h" #include "gtktooltipprivate.h" #include "gtkwidgetprivate.h" #include "gtkwindowprivate.h" diff --git a/gtk/gtkmountoperation-x11.c b/gtk/gtkmountoperation-x11.c index 7239de8b7c..6b51addefa 100644 --- a/gtk/gtkmountoperation-x11.c +++ b/gtk/gtkmountoperation-x11.c @@ -32,7 +32,6 @@ #include #include "x11/gdkx.h" #include -#include #include /* for the kill(2) system call and errno - POSIX.1-2001 and later */ diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c index 72c3fd5189..7cd496d45f 100644 --- a/gtk/gtkpasswordentry.c +++ b/gtk/gtkpasswordentry.c @@ -27,8 +27,6 @@ #include "gtkeditable.h" #include "gtkeventcontrollerkey.h" #include "gtkgestureclick.h" -#include "gtkbox.h" -#include "gtkimage.h" #include #include "gtkmarshalers.h" #include "gtkpasswordentrybuffer.h" diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index c2d2cdc764..1e3f1c669a 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -25,7 +25,6 @@ #include "gtkbinlayout.h" #include "gtkbox.h" #include "gtkdragsource.h" -#include "gtkicontheme.h" #include "gtkimage.h" #include #include "gtklabel.h" diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index f7cea656dc..df34858ac1 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -33,7 +33,6 @@ #include "gdk/gdkkeysyms.h" #include "gtkbookmarksmanagerprivate.h" #include "gtkfilechooserutils.h" -#include "gtkicontheme.h" #include #include "gtkmain.h" #include "gtkmarshalers.h" diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 22dfeeb333..d1201f8815 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -31,7 +31,6 @@ #include "gtkbuildable.h" #include "gtkbuilderprivate.h" #include "gtkgizmoprivate.h" -#include "gtkicontheme.h" #include "gtklabel.h" #include "gtkmarshalers.h" #include "gtkorientable.h" diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 75d60b0000..e56265a15b 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -34,12 +34,10 @@ #include "gtkaccessibleprivate.h" #include "gtkaccessiblerange.h" #include "gtkadjustment.h" -#include "gtkbox.h" #include "gtkbutton.h" #include "gtkbuttonprivate.h" #include "gtkeditable.h" #include "deprecated/gtkcelleditable.h" -#include "gtkimage.h" #include "gtktext.h" #include "gtkeventcontrollerkey.h" #include "gtkeventcontrollerfocus.h" @@ -47,7 +45,6 @@ #include "gtkeventcontrollerscroll.h" #include "gtkgestureclick.h" #include "gtkgestureswipe.h" -#include "gtkicontheme.h" #include "gtkmarshalers.h" #include "gtkorientable.h" #include "gtkprivate.h" diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index a88dd0cd14..21f666c601 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -42,10 +42,6 @@ #include "gtkcssnumbervalueprivate.h" #include "gtkcsswidgetnodeprivate.h" #include "gtkdebug.h" -#include "gtkgesturedrag.h" -#include "gtkgestureprivate.h" -#include "gtkgesturesingle.h" -#include "gtkgestureswipe.h" #include "gtkgestureprivate.h" #include "gtklayoutmanagerprivate.h" #include "gtkmain.h" @@ -70,7 +66,6 @@ #include "gtktooltipprivate.h" #include "gsktransformprivate.h" #include "gtktypebuiltins.h" -#include "gtkversion.h" #include "gtkwidgetpaintableprivate.h" #include "gtkwindowgroup.h" #include "gtkwindowprivate.h" diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index e721aeaa07..4c9be53d3f 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -27,15 +27,10 @@ #include "gtkwindowprivate.h" #include "gtkaccessibleprivate.h" -#include "gtkaccelgroupprivate.h" -#include "gtkactionable.h" #include "gtkapplicationprivate.h" #include "gtkbox.h" #include "gtkbuildable.h" -#include "gtkbuilderprivate.h" #include "gtkcheckbutton.h" -#include "gtkcsscornervalueprivate.h" -#include "gtkcsscolorvalueprivate.h" #include "gtkcssshadowvalueprivate.h" #include "gtkdroptargetasync.h" #include "gtkeventcontrollerlegacy.h" diff --git a/gtk/gtkwindowhandle.c b/gtk/gtkwindowhandle.c index 1e7c6cc344..39c8e8d1fe 100644 --- a/gtk/gtkwindowhandle.c +++ b/gtk/gtkwindowhandle.c @@ -20,7 +20,6 @@ #include "gtkwindowhandle.h" -#include "gtkactionmuxerprivate.h" #include "gtkbinlayout.h" #include "gtkbox.h" #include "gtkbuildable.h"