[gedit] Simplify the #include's for config.h
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Simplify the #include's for config.h
- Date: Tue, 12 Nov 2019 15:56:09 +0000 (UTC)
commit 4247f3b12ebcfe8e3b861c281aee49a1ba27431c
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Nov 12 15:57:34 2019 +0100
Simplify the #include's for config.h
HAVE_CONFIG_H is an Autotools thing, we use Meson now.
gedit/gedit-app-activatable.c | 4 +---
gedit/gedit-app.c | 4 +---
gedit/gedit-close-confirmation-dialog.c | 4 +---
gedit/gedit-commands-documents.c | 4 +---
gedit/gedit-commands-edit.c | 4 +---
gedit/gedit-commands-file.c | 4 +---
gedit/gedit-commands-help.c | 4 +---
gedit/gedit-commands-search.c | 4 +---
gedit/gedit-commands-view.c | 4 +---
gedit/gedit-dirs.c | 4 +---
gedit/gedit-document.c | 4 +---
gedit/gedit-documents-panel.c | 4 +---
gedit/gedit-encodings-combo-box.c | 4 +---
gedit/gedit-encodings-dialog.c | 4 +---
gedit/gedit-file-chooser-dialog-gtk.c | 4 +---
gedit/gedit-file-chooser-dialog-osx.m | 5 +----
gedit/gedit-file-chooser-dialog.c | 4 +---
gedit/gedit-history-entry.c | 4 +---
gedit/gedit-menu-stack-switcher.c | 4 +---
gedit/gedit-notebook-stack-switcher.c | 4 +---
gedit/gedit-pango.c | 4 +---
gedit/gedit-plugins-engine.c | 4 +---
gedit/gedit-preferences-dialog.c | 4 +---
gedit/gedit-replace-dialog.c | 4 +---
gedit/gedit-settings.c | 4 +---
gedit/gedit-statusbar.c | 4 +---
gedit/gedit-view-activatable.c | 4 +---
gedit/gedit-window-activatable.c | 4 +---
gedit/gedit-window.c | 4 +---
gedit/gedit.c | 4 +---
30 files changed, 30 insertions(+), 91 deletions(-)
---
diff --git a/gedit/gedit-app-activatable.c b/gedit/gedit-app-activatable.c
index c2bb615d6..f5dbd359d 100644
--- a/gedit/gedit-app-activatable.c
+++ b/gedit/gedit-app-activatable.c
@@ -19,9 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-app-activatable.h"
#include "gedit-app.h"
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 00c059bb2..19451d27a 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-app.h"
#include "gedit-app-private.h"
diff --git a/gedit/gedit-close-confirmation-dialog.c b/gedit/gedit-close-confirmation-dialog.c
index 0fdebfe95..257f9ddb8 100644
--- a/gedit/gedit-close-confirmation-dialog.c
+++ b/gedit/gedit-close-confirmation-dialog.c
@@ -19,9 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-close-confirmation-dialog.h"
diff --git a/gedit/gedit-commands-documents.c b/gedit/gedit-commands-documents.c
index 2e982bb22..34b78464b 100644
--- a/gedit/gedit-commands-documents.c
+++ b/gedit/gedit-commands-documents.c
@@ -20,9 +20,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-commands.h"
#include "gedit-commands-private.h"
diff --git a/gedit/gedit-commands-edit.c b/gedit/gedit-commands-edit.c
index 335c7be02..978440150 100644
--- a/gedit/gedit-commands-edit.c
+++ b/gedit/gedit-commands-edit.c
@@ -20,9 +20,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-commands.h"
#include "gedit-commands-private.h"
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 7d1cb1849..407e20e2b 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -21,9 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-commands.h"
#include "gedit-commands-private.h"
diff --git a/gedit/gedit-commands-help.c b/gedit/gedit-commands-help.c
index e570d68ae..764a130f4 100644
--- a/gedit/gedit-commands-help.c
+++ b/gedit/gedit-commands-help.c
@@ -20,9 +20,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-commands.h"
#include "gedit-commands-private.h"
diff --git a/gedit/gedit-commands-search.c b/gedit/gedit-commands-search.c
index 918206570..c931c8c18 100644
--- a/gedit/gedit-commands-search.c
+++ b/gedit/gedit-commands-search.c
@@ -21,9 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-commands.h"
#include "gedit-commands-private.h"
diff --git a/gedit/gedit-commands-view.c b/gedit/gedit-commands-view.c
index 2c88639f5..449458a6b 100644
--- a/gedit/gedit-commands-view.c
+++ b/gedit/gedit-commands-view.c
@@ -20,9 +20,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-commands.h"
#include "gedit-commands-private.h"
diff --git a/gedit/gedit-dirs.c b/gedit/gedit-dirs.c
index 8b6d50768..5d2661974 100644
--- a/gedit/gedit-dirs.c
+++ b/gedit/gedit-dirs.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-dirs.h"
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 05d1e2357..e76134819 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -21,9 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-document.h"
#include "gedit-document-private.h"
diff --git a/gedit/gedit-documents-panel.c b/gedit/gedit-documents-panel.c
index b1fd22a3a..85dcd5121 100644
--- a/gedit/gedit-documents-panel.c
+++ b/gedit/gedit-documents-panel.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-documents-panel.h"
diff --git a/gedit/gedit-encodings-combo-box.c b/gedit/gedit-encodings-combo-box.c
index 9d23d9f43..87b1711b1 100644
--- a/gedit/gedit-encodings-combo-box.c
+++ b/gedit/gedit-encodings-combo-box.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-encodings-combo-box.h"
diff --git a/gedit/gedit-encodings-dialog.c b/gedit/gedit-encodings-dialog.c
index 4a559f142..196690a7f 100644
--- a/gedit/gedit-encodings-dialog.c
+++ b/gedit/gedit-encodings-dialog.c
@@ -19,9 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-encodings-dialog.h"
diff --git a/gedit/gedit-file-chooser-dialog-gtk.c b/gedit/gedit-file-chooser-dialog-gtk.c
index c34e7dafa..530ee692e 100644
--- a/gedit/gedit-file-chooser-dialog-gtk.c
+++ b/gedit/gedit-file-chooser-dialog-gtk.c
@@ -22,9 +22,7 @@
/* TODO: Override set_extra_widget */
/* TODO: add encoding property */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-file-chooser-dialog-gtk.h"
diff --git a/gedit/gedit-file-chooser-dialog-osx.m b/gedit/gedit-file-chooser-dialog-osx.m
index 829ec40c5..ecfbee62a 100644
--- a/gedit/gedit-file-chooser-dialog-osx.m
+++ b/gedit/gedit-file-chooser-dialog-osx.m
@@ -18,10 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
+#include "config.h"
#include "gedit-file-chooser-dialog-osx.h"
#import <Cocoa/Cocoa.h>
diff --git a/gedit/gedit-file-chooser-dialog.c b/gedit/gedit-file-chooser-dialog.c
index 5a7c428f0..ede3c92e5 100644
--- a/gedit/gedit-file-chooser-dialog.c
+++ b/gedit/gedit-file-chooser-dialog.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-file-chooser-dialog.h"
diff --git a/gedit/gedit-history-entry.c b/gedit/gedit-history-entry.c
index 04f7b432e..37169c80a 100644
--- a/gedit/gedit-history-entry.c
+++ b/gedit/gedit-history-entry.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-history-entry.h"
diff --git a/gedit/gedit-menu-stack-switcher.c b/gedit/gedit-menu-stack-switcher.c
index abd8a8a87..4c4315cd9 100644
--- a/gedit/gedit-menu-stack-switcher.c
+++ b/gedit/gedit-menu-stack-switcher.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-menu-stack-switcher.h"
diff --git a/gedit/gedit-notebook-stack-switcher.c b/gedit/gedit-notebook-stack-switcher.c
index ca2b56cac..ecb661aae 100644
--- a/gedit/gedit-notebook-stack-switcher.c
+++ b/gedit/gedit-notebook-stack-switcher.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-notebook-stack-switcher.h"
diff --git a/gedit/gedit-pango.c b/gedit/gedit-pango.c
index 10c548868..149d657d7 100644
--- a/gedit/gedit-pango.c
+++ b/gedit/gedit-pango.c
@@ -20,9 +20,7 @@
#define G_LOG_DOMAIN "gedit-pango"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include <gdk/gdk.h>
#include <glib/gstdio.h>
diff --git a/gedit/gedit-plugins-engine.c b/gedit/gedit-plugins-engine.c
index d3e9dbb56..28e60960c 100644
--- a/gedit/gedit-plugins-engine.c
+++ b/gedit/gedit-plugins-engine.c
@@ -19,9 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-plugins-engine.h"
diff --git a/gedit/gedit-preferences-dialog.c b/gedit/gedit-preferences-dialog.c
index 328aaf945..aca126765 100644
--- a/gedit/gedit-preferences-dialog.c
+++ b/gedit/gedit-preferences-dialog.c
@@ -19,9 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-preferences-dialog.h"
diff --git a/gedit/gedit-replace-dialog.c b/gedit/gedit-replace-dialog.c
index de6b31fb3..3197ae1c5 100644
--- a/gedit/gedit-replace-dialog.c
+++ b/gedit/gedit-replace-dialog.c
@@ -19,9 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-replace-dialog.h"
diff --git a/gedit/gedit-settings.c b/gedit/gedit-settings.c
index 0224a43d8..016edc791 100644
--- a/gedit/gedit-settings.c
+++ b/gedit/gedit-settings.c
@@ -21,9 +21,7 @@
* Boston, MA 02110-1301 USA
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-settings.h"
diff --git a/gedit/gedit-statusbar.c b/gedit/gedit-statusbar.c
index 44cba43e2..2572f76a9 100644
--- a/gedit/gedit-statusbar.c
+++ b/gedit/gedit-statusbar.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-statusbar.h"
diff --git a/gedit/gedit-view-activatable.c b/gedit/gedit-view-activatable.c
index 57949ae78..7ec28761e 100644
--- a/gedit/gedit-view-activatable.c
+++ b/gedit/gedit-view-activatable.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-view-activatable.h"
diff --git a/gedit/gedit-window-activatable.c b/gedit/gedit-window-activatable.c
index 81c20fea2..37a6170cc 100644
--- a/gedit/gedit-window-activatable.c
+++ b/gedit/gedit-window-activatable.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-window-activatable.h"
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 62d5b34a7..5e4308385 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-window.h"
diff --git a/gedit/gedit.c b/gedit/gedit.c
index c84990a22..93d0db926 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -18,9 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
#include "gedit-app.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]