[gnome-screenshot] Use the appropriate inclusion directive for config.h



commit 94084ef4b302b77a4739b9ad588b6b1cf05b4193
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon May 29 13:17:35 2017 +0100

    Use the appropriate inclusion directive for config.h
    
    The `config.h` header is local, and generated by us. It should always be
    included as:
    
        #include "config.h"

 src/gnome-screenshot.c              |    3 ++-
 src/screenshot-application.c        |    3 ++-
 src/screenshot-area-selection.c     |    3 ++-
 src/screenshot-config.c             |    3 ++-
 src/screenshot-dialog.c             |    7 ++++---
 src/screenshot-filename-builder.c   |    3 ++-
 src/screenshot-interactive-dialog.c |    3 ++-
 src/screenshot-shadow.c             |    4 +---
 src/screenshot-utils.c              |    3 ++-
 9 files changed, 19 insertions(+), 13 deletions(-)
---
diff --git a/src/gnome-screenshot.c b/src/gnome-screenshot.c
index 572ff30..9956090 100644
--- a/src/gnome-screenshot.c
+++ b/src/gnome-screenshot.c
@@ -24,7 +24,8 @@
 /* IF YOU WANT YOUR OWN FEATURE -- WRITE THE DAMN THING YOURSELF (-: */
 /* MAYBE I LIED... -jrb */
 
-#include <config.h>
+#include "config.h"
+
 #include <locale.h>
 
 #include <glib/gi18n.h>
diff --git a/src/screenshot-application.c b/src/screenshot-application.c
index 7f5d440..3635cf6 100644
--- a/src/screenshot-application.c
+++ b/src/screenshot-application.c
@@ -20,7 +20,8 @@
  * USA
  */
 
-#include <config.h>
+#include "config.h"
+
 #include <gdk/gdkx.h>
 #include <gdk/gdkkeysyms.h>
 #include <fcntl.h>
diff --git a/src/screenshot-area-selection.c b/src/screenshot-area-selection.c
index 5d149d7..79a185a 100644
--- a/src/screenshot-area-selection.c
+++ b/src/screenshot-area-selection.c
@@ -18,7 +18,8 @@
  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  */
 
-#include <config.h>
+#include "config.h"
+
 #include <gtk/gtk.h>
 
 #include "screenshot-area-selection.h"
diff --git a/src/screenshot-config.c b/src/screenshot-config.c
index 9724904..c095f24 100644
--- a/src/screenshot-config.c
+++ b/src/screenshot-config.c
@@ -20,7 +20,8 @@
  * USA
  */
 
-#include <config.h>
+#include "config.h"
+
 #include <glib/gi18n.h>
 
 #include "screenshot-config.h"
diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c
index b436df0..b7046ed 100644
--- a/src/screenshot-dialog.c
+++ b/src/screenshot-dialog.c
@@ -17,14 +17,15 @@
  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  */
 
-#include <config.h>
-#include <string.h>
-#include <stdlib.h>
+#include "config.h"
 
 #include "screenshot-config.h"
 #include "screenshot-dialog.h"
+#include "screenshot-utils.h"
 #include <glib/gi18n.h>
 #include <gio/gio.h>
+#include <string.h>
+#include <stdlib.h>
 
 enum {
   TYPE_IMAGE_PNG,
diff --git a/src/screenshot-filename-builder.c b/src/screenshot-filename-builder.c
index 48f9536..f29beaa 100644
--- a/src/screenshot-filename-builder.c
+++ b/src/screenshot-filename-builder.c
@@ -18,7 +18,8 @@
  * USA
  */
 
-#include <config.h>
+#include "config.h"
+
 #include <gio/gio.h>
 #include <glib/gi18n.h>
 #include <pwd.h>
diff --git a/src/screenshot-interactive-dialog.c b/src/screenshot-interactive-dialog.c
index 50bbb73..aaa6dc2 100644
--- a/src/screenshot-interactive-dialog.c
+++ b/src/screenshot-interactive-dialog.c
@@ -21,7 +21,8 @@
  * USA
  */
 
-#include <config.h>
+#include "config.h"
+
 #include <glib/gi18n.h>
 
 #include "screenshot-config.h"
diff --git a/src/screenshot-shadow.c b/src/screenshot-shadow.c
index 003500a..eda983b 100644
--- a/src/screenshot-shadow.c
+++ b/src/screenshot-shadow.c
@@ -20,9 +20,7 @@
 
 /* Shadow code from anders */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "config.h"
 
 #include "screenshot-shadow.h"
 #include <math.h>
diff --git a/src/screenshot-utils.c b/src/screenshot-utils.c
index 5ab1830..fb2166d 100644
--- a/src/screenshot-utils.c
+++ b/src/screenshot-utils.c
@@ -18,7 +18,8 @@
  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  */
 
-#include <config.h>
+#include "config.h"
+
 #include <gdk/gdkkeysyms.h>
 #include <gtk/gtk.h>
 #include <glib.h>


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