pointerfocus: Don't include gtk.h

Also fix up gtktypes.h to include the required glib.h for G_BEGIN_DECLS
and gtkdnd.c to include missing includes.
This commit is contained in:
Benjamin Otte 2018-02-08 04:31:05 +01:00
parent 601c5fd734
commit eb3049d6b5
5 changed files with 19 additions and 18 deletions

View File

@ -24,27 +24,24 @@
#include "config.h"
#include "gtkdnd.h"
#include "gtkdndprivate.h"
#include "gtksettingsprivate.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "gdk/gdk.h"
#include "gdk/gdkcontentformatsprivate.h"
#include "gtkdragdest.h"
#include "gtkimageprivate.h"
#include "gtkintl.h"
#include "gtktooltipprivate.h"
#include "gtkwindow.h"
#include "gtkmain.h"
#include "gtkselectionprivate.h"
#include "gtksettingsprivate.h"
#include "gtktooltipprivate.h"
#include "gtkwidgetprivate.h"
#include "gtkwindowgroup.h"
#include "gtkwindowprivate.h"
#include "gtkwidgetprivate.h"
#include "gdk/gdkcontentformatsprivate.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
/**

View File

@ -19,12 +19,12 @@
#ifndef __GTK_DND_PRIVATE_H__
#define __GTK_DND_PRIVATE_H__
#include "gtkdnd.h"
#include <gtk/gtkwidget.h>
#include <gtk/gtkselection.h>
#include <gtk/gtkdragdest.h>
#include "gtkdragdest.h"
#include "gtkimagedefinitionprivate.h"
#include "gtkselection.h"
#include "gtkwidget.h"
typedef struct _GtkDragDestSite GtkDragDestSite;
struct _GtkDragDestSite

View File

@ -15,6 +15,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "gtkpointerfocusprivate.h"
#include "gtkprivate.h"

View File

@ -18,7 +18,7 @@
#ifndef _GTK_POINTER_FOCUS_PRIVATE_H_
#define _GTK_POINTER_FOCUS_PRIVATE_H_
#include <gtk/gtk.h>
#include <gtk/gtktypes.h>
typedef struct _GtkPointerFocus GtkPointerFocus;

View File

@ -29,6 +29,8 @@
#error "Only <gtk/gtk.h> can be included directly."
#endif
#include <gdk/gdk.h>
G_BEGIN_DECLS
typedef struct _GtkAdjustment GtkAdjustment;