[gnome-builder] enums: use ide-enums for IdeIndentStyle
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] enums: use ide-enums for IdeIndentStyle
- Date: Mon, 4 May 2015 19:57:49 +0000 (UTC)
commit 07cd8e50d3edf3ffa1ce8c7e6be872bde684c518
Author: Christian Hergert <christian hergert me>
Date: Mon May 4 12:57:34 2015 -0700
enums: use ide-enums for IdeIndentStyle
No sense in manually managing this enums gtype.
libide/Makefile.am | 2 +-
libide/ide-enums.c.in | 1 +
libide/ide-file-settings.c | 1 +
libide/ide-indent-style.c | 40 ----------------------------------------
libide/ide-indent-style.h | 4 ----
5 files changed, 3 insertions(+), 45 deletions(-)
---
diff --git a/libide/Makefile.am b/libide/Makefile.am
index 912c641..c505d10 100644
--- a/libide/Makefile.am
+++ b/libide/Makefile.am
@@ -108,7 +108,6 @@ libide_1_0_la_public_sources = \
ide-highlight-index.h \
ide-highlighter.c \
ide-highlighter.h \
- ide-indent-style.c \
ide-indent-style.h \
ide-indenter.c \
ide-indenter.h \
@@ -388,6 +387,7 @@ glib_enum_headers = \
ide-buffer.h \
ide-diagnostic.h \
ide-highlighter.h \
+ ide-indent-style.h \
ide-source-view.h \
ide-thread-pool.h \
$(NULL)
diff --git a/libide/ide-enums.c.in b/libide/ide-enums.c.in
index 04dce32..36e5034 100644
--- a/libide/ide-enums.c.in
+++ b/libide/ide-enums.c.in
@@ -8,6 +8,7 @@
#include "ide-buffer.h"
#include "ide-diagnostic.h"
#include "ide-highlighter.h"
+#include "ide-indent-style.h"
#include "ide-source-view.h"
#include "ide-thread-pool.h"
diff --git a/libide/ide-file-settings.c b/libide/ide-file-settings.c
index a66a9ca..e10b5e7 100644
--- a/libide/ide-file-settings.c
+++ b/libide/ide-file-settings.c
@@ -21,6 +21,7 @@
#include <glib/gi18n.h>
#include <gtksourceview/gtksource.h>
+#include "ide-enums.h"
#include "ide-file.h"
#include "ide-file-settings.h"
diff --git a/libide/ide-indent-style.h b/libide/ide-indent-style.h
index 7a6defb..8d93ec3 100644
--- a/libide/ide-indent-style.h
+++ b/libide/ide-indent-style.h
@@ -23,16 +23,12 @@
G_BEGIN_DECLS
-#define IDE_TYPE_INDENT_STYLE (ide_indent_style_get_type())
-
typedef enum
{
IDE_INDENT_STYLE_SPACES = 1,
IDE_INDENT_STYLE_TABS = 2,
} IdeIndentStyle;
-GType ide_indent_style_get_type (void);
-
G_END_DECLS
#endif /* IDE_INDENT_STYLE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]