[gnome-builder/wip/libide] libide: add GType for IdeSourceLocation



commit 53c7db42ac27b0fe5a201a958c680a9745480a21
Author: Christian Hergert <christian hergert me>
Date:   Tue Feb 10 13:26:16 2015 -0800

    libide: add GType for IdeSourceLocation

 libide/ide-source-location.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-location.c b/libide/ide-source-location.c
index 3e0a39d..b56a967 100644
--- a/libide/ide-source-location.c
+++ b/libide/ide-source-location.c
@@ -153,3 +153,21 @@ ide_source_location_new (IdeFile *file,
 
   return ret;
 }
+
+GType
+ide_source_location_get_type (void)
+{
+  static gsize type_id;
+
+  if (g_once_init_enter (&type_id))
+    {
+      gsize _type_id;
+
+      _type_id = g_boxed_type_register_static ("IdeSourceLocation",
+          (GBoxedCopyFunc)ide_source_location_ref,
+          (GBoxedFreeFunc)ide_source_location_unref);
+      g_once_init_leave (&type_id, _type_id);
+    }
+
+  return type_id;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]