include "config.h" in all .c files

Also, fix shell-global.c to actually compile with config.h included.

Was supposed to fix bug 602802, but doesn't...
This commit is contained in:
Dan Winship 2009-11-24 09:07:40 -05:00
parent f0e3b87330
commit dd8f05c81d
22 changed files with 49 additions and 0 deletions

View File

@ -23,6 +23,8 @@
* 02111-1307, USA. * 02111-1307, USA.
*/ */
#include "config.h"
#define MUTTER_BUILDING_PLUGIN 1 #define MUTTER_BUILDING_PLUGIN 1
#include <mutter-plugin.h> #include <mutter-plugin.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-app-system.h" #include "shell-app-system.h"
#include <string.h> #include <string.h>

View File

@ -1,4 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-app-private.h" #include "shell-app-private.h"
#include "shell-global.h" #include "shell-global.h"

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-arrow.h" #include "shell-arrow.h"
#include <clutter/clutter.h> #include <clutter/clutter.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-drawing.h" #include "shell-drawing.h"
#include <math.h> #include <math.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <gdk/gdkx.h> #include <gdk/gdkx.h>
#include <clutter/x11/clutter-x11.h> #include <clutter/x11/clutter-x11.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-gconf.h" #include "shell-gconf.h"
#include <gconf/gconf-client.h> #include <gconf/gconf-client.h>

View File

@ -94,6 +94,8 @@ function runTestFixedBox() {
} }
*/ */
#include "config.h"
#include "shell-generic-container.h" #include "shell-generic-container.h"
#include <clutter/clutter.h> #include <clutter/clutter.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-global-private.h" #include "shell-global-private.h"
#include "shell-wm.h" #include "shell-wm.h"
@ -19,6 +21,9 @@
#include <math.h> #include <math.h>
#include <X11/extensions/Xfixes.h> #include <X11/extensions/Xfixes.h>
#include <gjs/gjs.h> #include <gjs/gjs.h>
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#define SHELL_DBUS_SERVICE "org.gnome.Shell" #define SHELL_DBUS_SERVICE "org.gnome.Shell"

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-embedded-window-private.h" #include "shell-embedded-window-private.h"
#include <clutter/glx/clutter-glx.h> #include <clutter/glx/clutter-glx.h>

View File

@ -8,6 +8,8 @@
* popup-menu like actors. * popup-menu like actors.
*/ */
#include "config.h"
#include "shell-menu.h" #include "shell-menu.h"
G_DEFINE_TYPE(ShellMenu, shell_menu, BIG_TYPE_BOX); G_DEFINE_TYPE(ShellMenu, shell_menu, BIG_TYPE_BOX);

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-overflow-list.h" #include "shell-overflow-list.h"
G_DEFINE_TYPE (ShellOverflowList, G_DEFINE_TYPE (ShellOverflowList,

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-process.h" #include "shell-process.h"
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <gst/base/gstpushsrc.h> #include <gst/base/gstpushsrc.h>
#include "shell-recorder-src.h" #include "shell-recorder-src.h"

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -12,6 +12,8 @@
* size, even if that would overflow the size allocated to the stack. * size, even if that would overflow the size allocated to the stack.
*/ */
#include "config.h"
#include "shell-stack.h" #include "shell-stack.h"
G_DEFINE_TYPE (ShellStack, G_DEFINE_TYPE (ShellStack,

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-texture-cache.h" #include "shell-texture-cache.h"
#include "shell-global.h" #include "shell-global.h"
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include <clutter/x11/clutter-x11.h> #include <clutter/x11/clutter-x11.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "shell-uri-util.h" #include "shell-uri-util.h"
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include <gconf/gconf-client.h> #include <gconf/gconf-client.h>

View File

@ -1,4 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,5 +1,7 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include <string.h> #include <string.h>
#include "shell-wm.h" #include "shell-wm.h"