[gnome-nettool] Fix up #include <config.h> to make translations work



commit a646f08f5106dc9d7bb90062c567c47531f00174
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Tue Mar 29 11:47:45 2011 +0200

    Fix up #include <config.h> to make translations work
    
    Signed-off-by: GermÃn PÃo-CaamaÃo <gpoo gnome org>

 src/finger.c           |    4 ++++
 src/finger.h           |    3 ---
 src/gn-combo-history.c |    4 ++++
 src/info.h             |    3 ---
 src/lookup.c           |    4 ++++
 src/lookup.h           |    3 ---
 src/netstat.c          |    4 ++++
 src/netstat.h          |    3 ---
 src/nettool.c          |    4 ++++
 src/nettool.h          |    3 ---
 src/ping.c             |    4 ++++
 src/ping.h             |    3 ---
 src/scan.c             |    4 ++++
 src/scan.h             |    3 ---
 src/traceroute.c       |    4 ++++
 src/traceroute.h       |    3 ---
 src/util-mii.c         |    4 ++++
 src/utils.c            |    4 ++++
 src/utils.h            |    3 ---
 src/whois.c            |    4 ++++
 src/whois.h            |    5 -----
 21 files changed, 44 insertions(+), 32 deletions(-)
---
diff --git a/src/finger.c b/src/finger.c
index eec1af2..3a667ae 100644
--- a/src/finger.c
+++ b/src/finger.c
@@ -18,6 +18,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 
 #include <gtk/gtk.h>
diff --git a/src/finger.h b/src/finger.h
index 9246e38..2f34d4d 100644
--- a/src/finger.h
+++ b/src/finger.h
@@ -18,9 +18,6 @@
  */
  
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/gn-combo-history.c b/src/gn-combo-history.c
index 5ae5b7d..9cd7662 100644
--- a/src/gn-combo-history.c
+++ b/src/gn-combo-history.c
@@ -17,6 +17,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 
 #include "gn-combo-history.h"
diff --git a/src/info.h b/src/info.h
index 1adb2a4..58486a9 100644
--- a/src/info.h
+++ b/src/info.h
@@ -17,9 +17,6 @@
  */
  
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/lookup.c b/src/lookup.c
index 9592e6a..1372719 100644
--- a/src/lookup.c
+++ b/src/lookup.c
@@ -18,6 +18,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <glib/gprintf.h>
diff --git a/src/lookup.h b/src/lookup.h
index 37d1414..64af2d8 100644
--- a/src/lookup.h
+++ b/src/lookup.h
@@ -18,9 +18,6 @@
  */
  
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/netstat.c b/src/netstat.c
index 6c86cef..636f011 100644
--- a/src/netstat.c
+++ b/src/netstat.c
@@ -16,6 +16,10 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
  
 #include <string.h>
 #include <gtk/gtk.h>
diff --git a/src/netstat.h b/src/netstat.h
index 22efab8..fd04729 100644
--- a/src/netstat.h
+++ b/src/netstat.h
@@ -17,9 +17,6 @@
  */
  
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/nettool.c b/src/nettool.c
index 753e1b2..b227500 100644
--- a/src/nettool.c
+++ b/src/nettool.c
@@ -18,6 +18,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <unistd.h>
diff --git a/src/nettool.h b/src/nettool.h
index e0fcfc2..f2d00e1 100644
--- a/src/nettool.h
+++ b/src/nettool.h
@@ -19,9 +19,6 @@
 
 #include <glib.h>
 #include <gtk/gtk.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "gn-combo-history.h"
 
diff --git a/src/ping.c b/src/ping.c
index 8eba4fd..8b176c6 100644
--- a/src/ping.c
+++ b/src/ping.c
@@ -18,6 +18,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <glib/gprintf.h>
diff --git a/src/ping.h b/src/ping.h
index 0ab1b64..ba1c7ce 100644
--- a/src/ping.h
+++ b/src/ping.h
@@ -17,9 +17,6 @@
  */
 
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/scan.c b/src/scan.c
index d14a7a2..5a946df 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -19,6 +19,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <glib/gprintf.h>
diff --git a/src/scan.h b/src/scan.h
index bc8d75b..7189914 100644
--- a/src/scan.h
+++ b/src/scan.h
@@ -17,9 +17,6 @@
  */
 
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/traceroute.c b/src/traceroute.c
index b5422c2..bfdd11c 100644
--- a/src/traceroute.c
+++ b/src/traceroute.c
@@ -17,6 +17,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <glib/gprintf.h>
diff --git a/src/traceroute.h b/src/traceroute.h
index 3c6d1a4..21d61b0 100644
--- a/src/traceroute.h
+++ b/src/traceroute.h
@@ -17,9 +17,6 @@
  */
  
 #include <glib.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #include "nettool.h"
 
diff --git a/src/util-mii.c b/src/util-mii.c
index 579aea0..ed699c0 100644
--- a/src/util-mii.c
+++ b/src/util-mii.c
@@ -39,6 +39,10 @@
  * http://www.national.com/pf/DP/DP83840.html
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #ifdef __linux__
 #include <glib.h>
 #include <glib/gprintf.h>
diff --git a/src/utils.c b/src/utils.c
index d7ba6ba..d34aa89 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -23,6 +23,10 @@
 /* This is a backport of g_sprintf to allow compile gnome-netinfo
    on GNOME 2.0 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "utils.h"
 #include <string.h>
 #include <glib/gi18n.h>
diff --git a/src/utils.h b/src/utils.h
index f1a6492..c767149 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -25,9 +25,6 @@
  
 #include <glib.h>
 #include <gtk/gtk.h>
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
 
 #if (GLIB_MINOR_VERSION < 2)
 
diff --git a/src/whois.c b/src/whois.c
index ce4cc82..ca018ca 100644
--- a/src/whois.c
+++ b/src/whois.c
@@ -18,6 +18,10 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
diff --git a/src/whois.h b/src/whois.h
index f6bfd15..7b67f69 100644
--- a/src/whois.h
+++ b/src/whois.h
@@ -17,11 +17,6 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
  
-
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
 #include "nettool.h"
 
 #define WHOIS_OPTIONS ""



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