[gedit] Fix up #include <config.h> to make translations work



commit ccaf8ae4ead63e9a25773cff23ae9ae33f13ee34
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Tue Mar 29 13:29:55 2011 +0200

    Fix up #include <config.h> to make translations work

 gedit/gedit-command-line.c         |    8 ++++----
 gedit/gedit-panel.c                |    4 ++++
 gedit/gedit-style-scheme-manager.c |    4 ++++
 gedit/gedit-ui.h                   |    4 ----
 gedit/gedit-view-frame.c           |    4 ++++
 5 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/gedit/gedit-command-line.c b/gedit/gedit-command-line.c
index fcd9f51..60fdb30 100644
--- a/gedit/gedit-command-line.c
+++ b/gedit/gedit-command-line.c
@@ -20,14 +20,14 @@
  * Boston, MA  02110-1301  USA
  */
 
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+
 #include <glib/gi18n.h>
 #include <gio/gio.h>
 #include <gtk/gtk.h>
diff --git a/gedit/gedit-panel.c b/gedit/gedit-panel.c
index 330c09f..c488f1b 100644
--- a/gedit/gedit-panel.c
+++ b/gedit/gedit-panel.c
@@ -28,6 +28,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "gedit-panel.h"
 
 #include <glib/gi18n.h>
diff --git a/gedit/gedit-style-scheme-manager.c b/gedit/gedit-style-scheme-manager.c
index 3cb828e..839bef8 100644
--- a/gedit/gedit-style-scheme-manager.c
+++ b/gedit/gedit-style-scheme-manager.c
@@ -28,6 +28,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <errno.h>
 
diff --git a/gedit/gedit-ui.h b/gedit/gedit-ui.h
index cb42a33..21d6c16 100644
--- a/gedit/gedit-ui.h
+++ b/gedit/gedit-ui.h
@@ -31,10 +31,6 @@
 #ifndef __GEDIT_UI_H__
 #define __GEDIT_UI_H__
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
 #include <gtk/gtk.h>
 
 #include "gedit-commands.h"
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 50b96cc..f53cedd 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -20,6 +20,10 @@
  * Boston, MA  02110-1301  USA
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "gedit-view-frame.h"
 #include "gedit-marshal.h"
 #include "gedit-debug.h"



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