[gtk+] Fix some oversights with header guards
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix some oversights with header guards
- Date: Tue, 9 Dec 2014 00:33:22 +0000 (UTC)
commit 4f96353964a2012f03a7b736c0c84967c8310394
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 8 19:31:56 2014 -0500
Fix some oversights with header guards
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741254
gdk/broadway/gdkeventsource.h | 6 +++---
gdk/gdkenumtypes.h.template | 6 +++---
gdk/gdkframeclock.h | 6 +++---
gdk/gdkframetimings.h | 6 +++---
gdk/x11/gdkeventsource.h | 6 +++---
gtk/gtkplacessidebar.h | 7 ++++---
gtk/gtktypebuiltins.h.template | 6 +++---
7 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/gdk/broadway/gdkeventsource.h b/gdk/broadway/gdkeventsource.h
index f44df5a..073b18b 100644
--- a/gdk/broadway/gdkeventsource.h
+++ b/gdk/broadway/gdkeventsource.h
@@ -15,8 +15,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GDK_EVENT_SOURCE_H__
-#define __GDK_EVENT_SOURCE_H__
+#ifndef __GDK_BROADWAY_EVENT_SOURCE_H__
+#define __GDK_BROADWAY_EVENT_SOURCE_H__
#include "gdkprivate-broadway.h"
@@ -29,4 +29,4 @@ GSource * _gdk_broadway_event_source_new (GdkDisplay *display);
G_END_DECLS
-#endif /* __GDK_EVENT_SOURCE_H__ */
+#endif /* __GDK_BROADWAY_EVENT_SOURCE_H__ */
diff --git a/gdk/gdkenumtypes.h.template b/gdk/gdkenumtypes.h.template
index 49ee8b4..0bc4a71 100644
--- a/gdk/gdkenumtypes.h.template
+++ b/gdk/gdkenumtypes.h.template
@@ -1,11 +1,11 @@
/*** BEGIN file-header ***/
+#ifndef __GDK_ENUM_TYPES_H__
+#define __GDK_ENUM_TYPES_H__
+
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
#error "Only <gdk/gdk.h> can be included directly."
#endif
-#ifndef __GDK_ENUM_TYPES_H__
-#define __GDK_ENUM_TYPES_H__
-
#include <glib-object.h>
#include <gdk/gdkversionmacros.h>
diff --git a/gdk/gdkframeclock.h b/gdk/gdkframeclock.h
index 951cc8a..6d7d94d 100644
--- a/gdk/gdkframeclock.h
+++ b/gdk/gdkframeclock.h
@@ -22,13 +22,13 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#ifndef __GDK_FRAME_CLOCK_H__
+#define __GDK_FRAME_CLOCK_H__
+
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
#error "Only <gdk/gdk.h> can be included directly."
#endif
-#ifndef __GDK_FRAME_CLOCK_H__
-#define __GDK_FRAME_CLOCK_H__
-
#include <gdk/gdkframetimings.h>
G_BEGIN_DECLS
diff --git a/gdk/gdkframetimings.h b/gdk/gdkframetimings.h
index b345667..93db908 100644
--- a/gdk/gdkframetimings.h
+++ b/gdk/gdkframetimings.h
@@ -15,13 +15,13 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef __GDK_FRAME_TIMINGS_H__
+#define __GDK_FRAME_TIMINGS_H__
+
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
#error "Only <gdk/gdk.h> can be included directly."
#endif
-#ifndef __GDK_FRAME_TIMINGS_H__
-#define __GDK_FRAME_TIMINGS_H__
-
#include <glib-object.h>
#include <gdk/gdkversionmacros.h>
diff --git a/gdk/x11/gdkeventsource.h b/gdk/x11/gdkeventsource.h
index ed309c7..8338fdd 100644
--- a/gdk/x11/gdkeventsource.h
+++ b/gdk/x11/gdkeventsource.h
@@ -15,8 +15,8 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GDK_EVENT_SOURCE_H__
-#define __GDK_EVENT_SOURCE_H__
+#ifndef __GDK_X11_EVENT_SOURCE_H__
+#define __GDK_X11_EVENT_SOURCE_H__
#include "gdkeventtranslator.h"
@@ -40,4 +40,4 @@ void gdk_x11_event_source_select_events (GdkEventSource *source,
G_END_DECLS
-#endif /* __GDK_EVENT_SOURCE_H__ */
+#endif /* __GDK_X11_EVENT_SOURCE_H__ */
diff --git a/gtk/gtkplacessidebar.h b/gtk/gtkplacessidebar.h
index 70f1c09..f703cf8 100644
--- a/gtk/gtkplacessidebar.h
+++ b/gtk/gtkplacessidebar.h
@@ -23,13 +23,14 @@
* Federico Mena Quintero <federico gnome org>
*
*/
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
#ifndef __GTK_PLACES_SIDEBAR_H__
#define __GTK_PLACES_SIDEBAR_H__
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
diff --git a/gtk/gtktypebuiltins.h.template b/gtk/gtktypebuiltins.h.template
index ac24777..6a2c320 100644
--- a/gtk/gtktypebuiltins.h.template
+++ b/gtk/gtktypebuiltins.h.template
@@ -1,11 +1,11 @@
/*** BEGIN file-header ***/
+#ifndef __GTK_TYPE_BUILTINS_H__
+#define __GTK_TYPE_BUILTINS_H__
+
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
-#ifndef __GTK_TYPE_BUILTINS_H__
-#define __GTK_TYPE_BUILTINS_H__
-
#include <glib-object.h>
#include <gdk/gdk.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]