[network-manager-applet] build: do the right thing with config.h (bgo #644672)



commit 35bedafc9f89da4ee5eb2b3715777a44da62d888
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Mon Mar 14 00:59:34 2011 -0500

    build: do the right thing with config.h (bgo #644672)
    
    1) it shouldn't be included in headers
    2) it should be the first thing included in source files
    3) it's needed for getting translation right

 src/applet-dialogs.c                           |    2 ++
 src/connection-editor/ip4-routes-dialog.c      |    2 ++
 src/connection-editor/ip6-routes-dialog.c      |    2 ++
 src/connection-editor/nm-connection-editor.h   |    2 --
 src/connection-editor/page-dsl.c               |    2 ++
 src/connection-editor/page-ip4.c               |    2 ++
 src/connection-editor/page-ip6.c               |    2 ++
 src/connection-editor/page-mobile.c            |    2 ++
 src/connection-editor/page-ppp.c               |    2 ++
 src/connection-editor/page-vpn.c               |    2 ++
 src/connection-editor/page-wired-security.c    |    2 ++
 src/connection-editor/page-wired.c             |    2 ++
 src/connection-editor/page-wireless-security.c |    2 ++
 src/connection-editor/page-wireless.c          |    2 ++
 src/connection-editor/vpn-helpers.c            |    2 ++
 src/utils/mobile-wizard.c                      |    2 ++
 src/utils/nmn-mobile-providers.c               |    2 ++
 src/wireless-security/eap-method-peap.c        |    2 ++
 src/wireless-security/eap-method-tls.c         |    2 ++
 src/wireless-security/eap-method-ttls.c        |    2 ++
 src/wireless-security/eap-method.c             |    1 +
 src/wireless-security/wireless-security.c      |    2 ++
 22 files changed, 41 insertions(+), 2 deletions(-)
---
diff --git a/src/applet-dialogs.c b/src/applet-dialogs.c
index a0371ea..a59da15 100644
--- a/src/applet-dialogs.c
+++ b/src/applet-dialogs.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <netinet/in.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
diff --git a/src/connection-editor/ip4-routes-dialog.c b/src/connection-editor/ip4-routes-dialog.c
index 64c9d5f..36d2c28 100644
--- a/src/connection-editor/ip4-routes-dialog.c
+++ b/src/connection-editor/ip4-routes-dialog.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <netinet/in.h>
 #include <sys/types.h>
 #include <sys/socket.h>
diff --git a/src/connection-editor/ip6-routes-dialog.c b/src/connection-editor/ip6-routes-dialog.c
index 3798f69..5e41f06 100644
--- a/src/connection-editor/ip6-routes-dialog.c
+++ b/src/connection-editor/ip6-routes-dialog.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <netinet/in.h>
 #include <sys/types.h>
 #include <sys/socket.h>
diff --git a/src/connection-editor/nm-connection-editor.h b/src/connection-editor/nm-connection-editor.h
index da6abbb..a80814f 100644
--- a/src/connection-editor/nm-connection-editor.h
+++ b/src/connection-editor/nm-connection-editor.h
@@ -22,8 +22,6 @@
 #ifndef NM_CONNECTION_EDITOR_H
 #define NM_CONNECTION_EDITOR_H
 
-#include "config.h"
-
 #include <glib-object.h>
 
 #include <nm-client.h>
diff --git a/src/connection-editor/page-dsl.c b/src/connection-editor/page-dsl.c
index fdba4d5..6f21eda 100644
--- a/src/connection-editor/page-dsl.c
+++ b/src/connection-editor/page-dsl.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 
 #include <gtk/gtk.h>
diff --git a/src/connection-editor/page-ip4.c b/src/connection-editor/page-ip4.c
index 0e15866..ea711ba 100644
--- a/src/connection-editor/page-ip4.c
+++ b/src/connection-editor/page-ip4.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
diff --git a/src/connection-editor/page-ip6.c b/src/connection-editor/page-ip6.c
index 6243aaf..6dcd04e 100644
--- a/src/connection-editor/page-ip6.c
+++ b/src/connection-editor/page-ip6.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
diff --git a/src/connection-editor/page-mobile.c b/src/connection-editor/page-mobile.c
index ed8b087..044cb31 100644
--- a/src/connection-editor/page-mobile.c
+++ b/src/connection-editor/page-mobile.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <ctype.h>
 
diff --git a/src/connection-editor/page-ppp.c b/src/connection-editor/page-ppp.c
index 4c8e361..9148dd6 100644
--- a/src/connection-editor/page-ppp.c
+++ b/src/connection-editor/page-ppp.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 
 #include <gtk/gtk.h>
diff --git a/src/connection-editor/page-vpn.c b/src/connection-editor/page-vpn.c
index 6a7d614..6c3bca0 100644
--- a/src/connection-editor/page-vpn.c
+++ b/src/connection-editor/page-vpn.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 
 #include <gtk/gtk.h>
diff --git a/src/connection-editor/page-wired-security.c b/src/connection-editor/page-wired-security.c
index 19f8ef7..2d56785 100644
--- a/src/connection-editor/page-wired-security.c
+++ b/src/connection-editor/page-wired-security.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 
 #include <gtk/gtk.h>
diff --git a/src/connection-editor/page-wired.c b/src/connection-editor/page-wired.c
index e427eab..a225ee1 100644
--- a/src/connection-editor/page-wired.c
+++ b/src/connection-editor/page-wired.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <net/ethernet.h>
 
diff --git a/src/connection-editor/page-wireless-security.c b/src/connection-editor/page-wireless-security.c
index 153c949..d7974d1 100644
--- a/src/connection-editor/page-wireless-security.c
+++ b/src/connection-editor/page-wireless-security.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 
 #include <gtk/gtk.h>
diff --git a/src/connection-editor/page-wireless.c b/src/connection-editor/page-wireless.c
index fe22b04..d9c39a8 100644
--- a/src/connection-editor/page-wireless.c
+++ b/src/connection-editor/page-wireless.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <math.h>
 
diff --git a/src/connection-editor/vpn-helpers.c b/src/connection-editor/vpn-helpers.c
index df05fb2..8524454 100644
--- a/src/connection-editor/vpn-helpers.c
+++ b/src/connection-editor/vpn-helpers.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <glib.h>
 #include <gmodule.h>
diff --git a/src/utils/mobile-wizard.c b/src/utils/mobile-wizard.c
index 30206f1..becf866 100644
--- a/src/utils/mobile-wizard.c
+++ b/src/utils/mobile-wizard.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2008 - 2011 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <stdlib.h>
 
 #include <glib.h>
diff --git a/src/utils/nmn-mobile-providers.c b/src/utils/nmn-mobile-providers.c
index 64df345..9120aef 100644
--- a/src/utils/nmn-mobile-providers.c
+++ b/src/utils/nmn-mobile-providers.c
@@ -21,6 +21,8 @@
  * Copyright (C) 2009 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
diff --git a/src/wireless-security/eap-method-peap.c b/src/wireless-security/eap-method-peap.c
index 26cec44..bed676c 100644
--- a/src/wireless-security/eap-method-peap.c
+++ b/src/wireless-security/eap-method-peap.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2007 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <glib/gi18n.h>
 #include <ctype.h>
 #include <string.h>
diff --git a/src/wireless-security/eap-method-tls.c b/src/wireless-security/eap-method-tls.c
index 754f45b..01b5846 100644
--- a/src/wireless-security/eap-method-tls.c
+++ b/src/wireless-security/eap-method-tls.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2007 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <glib/gi18n.h>
 #include <ctype.h>
 #include <string.h>
diff --git a/src/wireless-security/eap-method-ttls.c b/src/wireless-security/eap-method-ttls.c
index 897bda7..0ab2ff1 100644
--- a/src/wireless-security/eap-method-ttls.c
+++ b/src/wireless-security/eap-method-ttls.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2007 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <glib/gi18n.h>
 #include <ctype.h>
 #include <string.h>
diff --git a/src/wireless-security/eap-method.c b/src/wireless-security/eap-method.c
index 65837eb..2815821 100644
--- a/src/wireless-security/eap-method.c
+++ b/src/wireless-security/eap-method.c
@@ -21,6 +21,7 @@
  * (C) Copyright 2007 - 2011 Red Hat, Inc.
  */
 
+#include "config.h"
 
 #include <glib.h>
 #include <glib/gi18n.h>
diff --git a/src/wireless-security/wireless-security.c b/src/wireless-security/wireless-security.c
index ff117cb..423c45c 100644
--- a/src/wireless-security/wireless-security.c
+++ b/src/wireless-security/wireless-security.c
@@ -20,6 +20,8 @@
  * (C) Copyright 2007 - 2010 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <string.h>
 
 #include <glib.h>



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