[gnome-builder] libide: add ide-diagnostic.h to ide-enums generation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: add ide-diagnostic.h to ide-enums generation
- Date: Wed, 25 Mar 2015 07:26:03 +0000 (UTC)
commit 307f95a067e0394e707689338270c67fedc6aad8
Author: Christian Hergert <christian hergert me>
Date: Tue Mar 24 23:36:05 2015 -0700
libide: add ide-diagnostic.h to ide-enums generation
libide/Makefile.am | 1 +
libide/ide-diagnostic.c | 24 ------------------------
libide/ide-diagnostic.h | 1 -
libide/ide-enums.c.template | 1 +
4 files changed, 2 insertions(+), 25 deletions(-)
---
diff --git a/libide/Makefile.am b/libide/Makefile.am
index 8cfde18..a016868 100644
--- a/libide/Makefile.am
+++ b/libide/Makefile.am
@@ -343,6 +343,7 @@ endif
libide_1_0_la_type_headers = \
libide/ide-buffer.h \
+ libide/ide-diagnostic.h \
libide/ide-source-view.h \
$(NULL)
diff --git a/libide/ide-diagnostic.c b/libide/ide-diagnostic.c
index 707ecdd..e352ddd 100644
--- a/libide/ide-diagnostic.c
+++ b/libide/ide-diagnostic.c
@@ -206,30 +206,6 @@ _ide_diagnostic_add_range (IdeDiagnostic *self,
_ide_diagnostic_take_range (self, ide_source_range_ref (range));
}
-GType
-ide_diagnostic_severity_get_type (void)
-{
- static gsize type_id;
-
- if (g_once_init_enter (&type_id))
- {
- gsize _type_id;
- static const GEnumValue values[] = {
- { IDE_DIAGNOSTIC_IGNORED, "IDE_DIAGNOSTIC_IGNORED", "IGNORED" },
- { IDE_DIAGNOSTIC_NOTE, "IDE_DIAGNOSTIC_NOTE", "NOTE" },
- { IDE_DIAGNOSTIC_WARNING, "IDE_DIAGNOSTIC_WARNING", "WARNING" },
- { IDE_DIAGNOSTIC_ERROR, "IDE_DIAGNOSTIC_ERROR", "ERROR" },
- { IDE_DIAGNOSTIC_FATAL, "IDE_DIAGNOSTIC_FATAL", "FATAL" },
- { 0 }
- };
-
- _type_id = g_enum_register_static ("IdeDiagnosticSeverity", values);
- g_once_init_leave (&type_id, _type_id);
- }
-
- return type_id;
-}
-
const gchar *
ide_diagnostic_severity_to_string (IdeDiagnosticSeverity severity)
{
diff --git a/libide/ide-diagnostic.h b/libide/ide-diagnostic.h
index 04d4b2b..5384dc5 100644
--- a/libide/ide-diagnostic.h
+++ b/libide/ide-diagnostic.h
@@ -45,7 +45,6 @@ GType ide_diagnostic_get_type (void);
IdeDiagnostic *ide_diagnostic_ref (IdeDiagnostic *self);
void ide_diagnostic_unref (IdeDiagnostic *self);
-GType ide_diagnostic_severity_get_type (void);
const gchar *ide_diagnostic_severity_to_string (IdeDiagnosticSeverity severity);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeDiagnostic, ide_diagnostic_unref)
diff --git a/libide/ide-enums.c.template b/libide/ide-enums.c.template
index 37f011f..cd1a4ff 100644
--- a/libide/ide-enums.c.template
+++ b/libide/ide-enums.c.template
@@ -7,6 +7,7 @@
#include "ide-buffer.h"
#include "ide-source-view.h"
+#include "ide-diagnostic.h"
/*** END file-header ***/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]