[monet] Add and fix various header guards
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [monet] Add and fix various header guards
- Date: Sat, 7 Nov 2009 18:39:28 +0000 (UTC)
commit 7c00d3da7c658e38a3698ecede48c8a07f7c5763
Author: Thomas Wood <thos gnome org>
Date: Sat Nov 7 18:35:33 2009 +0000
Add and fix various header guards
Add and fix guards to prevent headers from being included multiple times.
monet/mn-palette.h | 5 +++++
monet/mn-types.h | 4 ++--
monet/monet.h | 8 ++++++++
3 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/monet/mn-palette.h b/monet/mn-palette.h
index ef77d03..69bd5f2 100644
--- a/monet/mn-palette.h
+++ b/monet/mn-palette.h
@@ -21,6 +21,9 @@
* Author: Thomas Wood <thos gnome org>
*/
+#ifndef MN_PALETTE_H
+#define MN_PALETTE_H
+
#include "mn-color.h"
#include "mn-types.h"
@@ -48,3 +51,5 @@ void mn_palette_set_color (MnPalette *palette,
MnPaletteIndex index,
MnState state,
const MnColor *color);
+
+#endif /* MN_PALETTE_H */
diff --git a/monet/mn-types.h b/monet/mn-types.h
index 1e2a580..66993be 100644
--- a/monet/mn-types.h
+++ b/monet/mn-types.h
@@ -21,7 +21,7 @@
* Author: Thomas Wood <thos gnome org>
*/
-#ifndef NM_TYPES_H
+#ifndef MN_TYPES_H
#define MN_TYPES_H
typedef enum
@@ -54,4 +54,4 @@ typedef struct
gdouble left;
} MnBorder;
-#endif /* NM_TYPES_H */
+#endif /* MN_TYPES_H */
diff --git a/monet/monet.h b/monet/monet.h
index e1245c1..60d0964 100644
--- a/monet/monet.h
+++ b/monet/monet.h
@@ -22,6 +22,9 @@
*/
#include <glib-object.h>
+#ifndef MONET_H
+#define MONET_H
+
#define MONET_H_INSIDE
#include <monet/mn-color.h>
@@ -29,7 +32,12 @@
#include <monet/mn-marshal.h>
#include <monet/mn-parts.h>
#include <monet/mn-types.h>
+#include <monet/mn-widget.h>
+#include <monet/mn-theme-engine.h>
+#include <monet/mn-palette.h>
#undef MONET_H_INSIDE
void monet_init (gint *argc, gchar ***argv);
+
+#endif /* MONET_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]