Commit bda1f355 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Inclusion cleanups in sources

Try to do inclusions in the same sequence, more or less.
parent 88ef199e
......@@ -26,10 +26,8 @@
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include "gdkmain.h"
#include "gdk.h"
#include "gdkinternals.h"
#include "gdkintl.h"
......@@ -37,6 +35,9 @@
#include "gdkkeysyms.h"
#endif
#include <string.h>
#include <stdlib.h>
typedef struct _GdkPredicate GdkPredicate;
struct _GdkPredicate
......
......@@ -23,6 +23,7 @@
#include "config.h"
#include "gdkapplaunchcontext.h"
#include "gdkinternals.h"
#include "gdkscreen.h"
#include "gdkintl.h"
......
......@@ -17,13 +17,14 @@
* Boston, MA 02111-1307, USA.
*/
#include "gdkcairo.h"
#include "config.h"
#include <math.h>
#include "gdkcairo.h"
#include "gdkdrawable.h"
#include "gdkinternals.h"
#include <math.h>
/**
* SECTION:cairo_interaction
......
......@@ -25,12 +25,13 @@
*/
#include "config.h"
#include <time.h>
#include "gdkscreen.h"
#include "gdkcolor.h"
#include "gdkscreen.h"
#include "gdkinternals.h"
#include <time.h>
/**
* SECTION:colors
......
......@@ -25,7 +25,9 @@
*/
#include "config.h"
#include "gdkcursor.h"
#include "gdkdisplay.h"
#include "gdkinternals.h"
......
......@@ -18,7 +18,9 @@
*/
#include "config.h"
#include "gdkdevice.h"
#include "gdkdeviceprivate.h"
#include "gdkintl.h"
#include "gdkinternals.h"
......
......@@ -18,7 +18,9 @@
*/
#include "config.h"
#include "gdkdevicemanager.h"
#include "gdkintl.h"
#include "gdkinternals.h"
......
......@@ -22,15 +22,17 @@
*/
#include "config.h"
#include <math.h>
#include <glib.h>
#include "gdk.h" /* gdk_event_send_client_message() */
#include "gdkdisplay.h"
#include "gdkevents.h"
#include "gdkwindowimpl.h"
#include "gdkinternals.h"
#include "gdkmarshalers.h"
#include "gdkscreen.h"
#include <glib.h>
#include <math.h>
enum {
OPENED,
......
......@@ -26,13 +26,12 @@
#include "config.h"
#include "gdkscreen.h"
#include "gdkdisplay.h"
#include "gdkdisplaymanager.h"
#include "gdkscreen.h"
#include "gdkdisplay.h"
#include "gdkinternals.h"
#include "gdkmarshalers.h"
#include "gdkintl.h"
......
......@@ -25,9 +25,11 @@
*/
#include "config.h"
#include <gdkdnd.h>
#include <gdkdisplay.h>
#include <gdkwindow.h>
#include "gdkdnd.h"
#include "gdkdisplay.h"
#include "gdkwindow.h"
/**
......
......@@ -25,16 +25,18 @@
*/
#include "config.h"
#include <math.h>
#include <pango/pangocairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "gdkcairo.h"
#include "gdkdrawable.h"
#include "gdkcairo.h"
#include "gdkinternals.h"
#include "gdkwindow.h"
#include "gdkscreen.h"
#include "gdkpixbuf.h"
#include <pango/pangocairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <math.h>
G_DEFINE_ABSTRACT_TYPE (GdkDrawable, gdk_drawable, G_TYPE_OBJECT)
......
......@@ -25,12 +25,11 @@
*/
#include "config.h"
#include <string.h> /* For memset() */
#include <math.h>
#include "gdk.h"
#include "gdkinternals.h"
#include <string.h>
#include <math.h>
typedef struct _GdkIOClosure GdkIOClosure;
......
......@@ -26,11 +26,11 @@
#include "config.h"
#include <stdio.h>
#include "gdktypes.h"
#include "gdkprivate.h"
#include <stdio.h>
guint _gdk_debug_flags = 0;
GList *_gdk_default_filters = NULL;
......
......@@ -25,9 +25,6 @@
*/
#include "config.h"
#include <glib/gprintf.h>
#include <stdlib.h>
#include <string.h>
#include "gdkkeysyms.h"
#include "gdkinternals.h"
......@@ -36,6 +33,10 @@
#include "keyname-table.h"
#include <glib/gprintf.h>
#include <stdlib.h>
#include <string.h>
#define GDK_NUM_KEYS G_N_ELEMENTS (gdk_keys_by_keyval)
static int
......
......@@ -26,9 +26,10 @@
#include "config.h"
#include "gdkdisplay.h"
#include "gdkkeys.h"
#include "gdkdisplay.h"
enum {
DIRECTION_CHANGED,
......
......@@ -25,7 +25,8 @@
*/
#include "config.h"
#include "gdk.h"
#include "gdktypes.h"
/* Thanks to Markus G. Kuhn <mkuhn@acm.org> for the ksysym<->Unicode
......
......@@ -27,6 +27,8 @@
#include "config.h"
#include "gdkmedialib.h"
#include <stdlib.h>
#include <dlfcn.h>
......@@ -44,8 +46,6 @@
#include <sys/sysinfo.h>
#endif
#include "gdkmedialib.h"
typedef char * (*ml_version) (void);
static ml_version medialib_version = mlib_version;
......
......@@ -26,12 +26,11 @@
#include "config.h"
#include <math.h>
#include "gdkwindow.h"
#include "gdkinternals.h"
#include "gdkwindowimpl.h"
#include <math.h>
/* LIMITATIONS:
*
......
......@@ -18,12 +18,15 @@
*/
#include "config.h"
#include <math.h>
#include <pango/pangocairo.h>
#include "gdkpango.h"
#include "gdkscreen.h"
#include "gdkintl.h"
#include <math.h>
#include <pango/pangocairo.h>
/* Get a clip region to draw only part of a layout. index_ranges
* contains alternating range starts/stops. The region is the
* region which contains the given ranges, i.e. if you draw with the
......
......@@ -23,13 +23,14 @@
*/
#include "config.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "gdkpixbuf.h"
#include "gdkcolor.h"
#include "gdkwindow.h"
#include "gdkpixbuf.h"
#include "gdkinternals.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
/**
* SECTION:pixbufs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment