[gedit/wip/gcode: 3/6] gcode: add a main header
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/gcode: 3/6] gcode: add a main header
- Date: Sun, 3 May 2015 11:30:57 +0000 (UTC)
commit 99a7ec7304bae89c04189f98656994d7045e9d29
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 3 11:59:14 2015 +0200
gcode: add a main header
It'll be easier in the gedit code, so that only one header #include is
needed for gcode.
gcode/Makefile.am | 1 +
gcode/gcode.h | 26 ++++++++++++++++++++++++++
gedit/gedit-utils.c | 2 +-
3 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/gcode/Makefile.am b/gcode/Makefile.am
index 48becef..7921340 100644
--- a/gcode/Makefile.am
+++ b/gcode/Makefile.am
@@ -19,6 +19,7 @@ gcode_libgcode_la_LIBADD = \
gcode_libgcode_la_LDFLAGS = -no-undefined
gcode_libgcode_la_SOURCES = \
+ gcode/gcode.h \
gcode/gcode-debug.c \
gcode/gcode-debug.h \
gcode/gcode-utils.c \
diff --git a/gcode/gcode.h b/gcode/gcode.h
new file mode 100644
index 0000000..e28b499
--- /dev/null
+++ b/gcode/gcode.h
@@ -0,0 +1,26 @@
+/*
+ * This file is part of gcode.
+ *
+ * Copyright 2015 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GCODE_H__
+#define __GCODE_H__
+
+#include "gcode/gcode-debug.h"
+#include "gcode/gcode-utils.h"
+
+#endif /* __GCODE_H__ */
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index 485b095..6b9cf72 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -23,7 +23,7 @@
#include "gedit-utils.h"
#include <glib/gi18n.h>
-#include "gcode/gcode-utils.h"
+#include "gcode/gcode.h"
void
gedit_utils_menu_position_under_widget (GtkMenu *menu,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]