[gtk/grab-leftovers: 1/2] Drop some unnecessary includes



commit d8c4c368626bd9f0ddf96445f3bade539b3c22d1
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 23 08:24:22 2020 -0400

    Drop some unnecessary includes
    
    gtkaccelgroup.h is not very useful anymore, and
    doesn't need to be included in other public headers.

 gtk/gtkaccellabel.c    | 1 +
 gtk/gtkmodelbutton.c   | 1 +
 gtk/gtkplacessidebar.c | 1 +
 gtk/gtkpopover.c       | 1 +
 gtk/gtkshortcutlabel.c | 1 +
 gtk/gtkwidget.h        | 2 +-
 gtk/gtkwindow.h        | 1 -
 7 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index 78b40ef887..f631b75631 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -30,6 +30,7 @@
 
 #include "gtklabel.h"
 #include "gtkaccellabelprivate.h"
+#include "gtkaccelgroup.h"
 #include "gtkintl.h"
 #include "gtkmain.h"
 #include "gtkprivate.h"
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index 61b9e3a955..6ffa7d0874 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -21,6 +21,7 @@
 
 #include "gtkmodelbuttonprivate.h"
 
+#include "gtkaccelgroup.h"
 #include "gtkactionhelperprivate.h"
 #include "gtkboxlayout.h"
 #include "gtkgestureclick.h"
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index dabe9470ef..a5e3170bcd 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -31,6 +31,7 @@
 #endif
 
 #include "gtkplacessidebarprivate.h"
+#include "gtkaccelgroup.h"
 #include "gtksidebarrowprivate.h"
 #include "gdk/gdkkeysyms.h"
 #include "gtkbookmarksmanagerprivate.h"
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index a2a6adf654..646081ab1f 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -97,6 +97,7 @@
 
 #include "config.h"
 
+#include "gtkaccelgroup.h"
 #include "gtkpopoverprivate.h"
 #include "gtkpopovermenuprivate.h"
 #include "gtknative.h"
diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c
index c424c51994..190afa73ce 100644
--- a/gtk/gtkshortcutlabel.c
+++ b/gtk/gtkshortcutlabel.c
@@ -23,6 +23,7 @@
 #include "gtklabel.h"
 #include "gtkframe.h"
 #include "gtkwidgetprivate.h"
+#include "gtkaccelgroup.h"
 #include "gtkintl.h"
 
 /**
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index c43049961b..f763601f1d 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -31,10 +31,10 @@
 
 #include <gdk/gdk.h>
 #include <gsk/gsk.h>
-#include <gtk/gtkaccelgroup.h>
 #include <gtk/gtkborder.h>
 #include <gtk/gtkshortcut.h>
 #include <gtk/gtkshortcutaction.h>
+#include <gtk/gtkenums.h>
 #include <gtk/gtktypes.h>
 #include <atk/atk.h>
 
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h
index 2563ac5cac..cb1654fb63 100644
--- a/gtk/gtkwindow.h
+++ b/gtk/gtkwindow.h
@@ -31,7 +31,6 @@
 #endif
 
 #include <gtk/gtkapplication.h>
-#include <gtk/gtkaccelgroup.h>
 #include <gtk/gtkbin.h>
 
 G_BEGIN_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]