shortcuts: Don't include gtk.h

Clean up all shortcuts includes to only include the necessary files
while we're at it.
This commit is contained in:
Benjamin Otte 2018-02-08 06:15:10 +01:00
parent eb3049d6b5
commit 7437d34eb9
10 changed files with 54 additions and 18 deletions

View File

@ -27,14 +27,14 @@
#include "config.h"
#include "gtkentry.h"
#include "gtkbox.h"
#include "gtkcenterbox.h"
#include "gtksearchbar.h"
#include "gtkbutton.h"
#include "gtkcenterbox.h"
#include "gtkentryprivate.h"
#include "gtkintl.h"
#include "gtkprivate.h"
#include "gtksearchbar.h"
#include "gtkrevealer.h"
#include "gtksearchentryprivate.h"
#include "gtksnapshot.h"

View File

@ -32,7 +32,8 @@
#error "Only <gtk/gtk.h> can be included directly."
#endif
#include <gtk/gtkrevealer.h>
#include <gtk/gtkbin.h>
#include <gtk/gtkentry.h>
G_BEGIN_DECLS

View File

@ -20,12 +20,13 @@
#include "gtkshortcutsgroup.h"
#include "gtkshortcutsshortcut.h"
#include "gtkbox.h"
#include "gtkintl.h"
#include "gtklabel.h"
#include "gtkorientable.h"
#include "gtksizegroup.h"
#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtkshortcutsshortcut.h"
#include "gtksizegroup.h"
/**
* SECTION:gtkshortcutsgroup

View File

@ -19,7 +19,11 @@
#ifndef __GTK_SHORTCUTS_GROUP_H__
#define __GTK_SHORTCUTS_GROUP_H__
#include <gtk/gtkbox.h>
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#include <gdk/gdk.h>
G_BEGIN_DECLS

View File

@ -19,8 +19,11 @@
#ifndef __GTK_SHORTCUTS_SECTION_H__
#define __GTK_SHORTCUTS_SECTION_H__
#include <gtk/gtkbox.h>
#include <gtk/gtkshortcutsgroup.h>
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#include <gdk/gdk.h>
G_BEGIN_DECLS

View File

@ -20,10 +20,14 @@
#include "gtkshortcutsshortcutprivate.h"
#include "gtkimage.h"
#include "gtkintl.h"
#include "gtklabel.h"
#include "gtkprivate.h"
#include "gtkshortcutlabel.h"
#include "gtkshortcutswindowprivate.h"
#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtksizegroup.h"
#include "gtktypebuiltins.h"
/**
* SECTION:gtkshortcutsshortcut

View File

@ -19,7 +19,11 @@
#ifndef GTK_SHORTCUTS_SHORTCUT_H
#define GTK_SHORTCUTS_SHORTCUT_H
#include <gtk/gtk.h>
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#include <gdk/gdk.h>
G_BEGIN_DECLS

View File

@ -27,6 +27,8 @@
#include "gtkshortcutsshortcut.h"
#include "gtkwindow.h"
G_BEGIN_DECLS
void gtk_shortcuts_shortcut_update_accel (GtkShortcutsShortcut *self,

View File

@ -19,15 +19,28 @@
#include "config.h"
#include "gtkshortcutswindowprivate.h"
#include "gtkbindings.h"
#include "gtkbox.h"
#include "gtkgrid.h"
#include "gtkheaderbar.h"
#include "gtkintl.h"
#include "gtklabel.h"
#include "gtklistbox.h"
#include "gtkmenubutton.h"
#include "gtkpopover.h"
#include "gtkprivate.h"
#include "gtkscrolledwindow.h"
#include "gtksearchbar.h"
#include "gtksearchentry.h"
#include "gtkshortcutssection.h"
#include "gtkshortcutsgroup.h"
#include "gtkshortcutsshortcutprivate.h"
#include "gtksearchbar.h"
#include "gtksearchentry.h"
#include "gtksizegroup.h"
#include "gtkstack.h"
#include "gtktogglebutton.h"
#include "gtktypebuiltins.h"
#include "gtkwidgetprivate.h"
#include "gtkprivate.h"
#include "gtkintl.h"
/**
* SECTION:gtkshortcutswindow

View File

@ -19,6 +19,10 @@
#ifndef __GTK_SHORTCUTS_WINDOW_H__
#define __GTK_SHORTCUTS_WINDOW_H__
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#include <gtk/gtkwindow.h>
G_BEGIN_DECLS