[gnome-builder/wip/libide] libide: set name in language and fix parent class



commit 734d8ffcf0ee6a32ceb36c4f6c2b737b05f05fce
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 11 21:29:19 2015 -0800

    libide: set name in language and fix parent class

 libide/c/ide-c-language.c |    7 +++++++
 libide/c/ide-c-language.h |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libide/c/ide-c-language.c b/libide/c/ide-c-language.c
index ae02369..7b7ae09 100644
--- a/libide/c/ide-c-language.c
+++ b/libide/c/ide-c-language.c
@@ -97,6 +97,12 @@ ide_c_language_get_symbol_resolver (IdeLanguage *language)
   return priv->symbol_resolver;
 }
 
+static const gchar *
+ide_c_language_get_name (IdeLanguage *self)
+{
+  return _("C");
+}
+
 static void
 ide_c_language_dispose (GObject *object)
 {
@@ -123,6 +129,7 @@ ide_c_language_class_init (IdeCLanguageClass *klass)
   language_class->get_indenter = ide_c_language_get_indenter;
   language_class->get_refactory = ide_c_language_get_refactory;
   language_class->get_symbol_resolver = ide_c_language_get_symbol_resolver;
+  language_class->get_name = ide_c_language_get_name;
 
   object_class->dispose = ide_c_language_dispose;
 }
diff --git a/libide/c/ide-c-language.h b/libide/c/ide-c-language.h
index f1e7305..861645d 100644
--- a/libide/c/ide-c-language.h
+++ b/libide/c/ide-c-language.h
@@ -29,7 +29,7 @@ G_DECLARE_DERIVABLE_TYPE (IdeCLanguage, ide_c_language, IDE, C_LANGUAGE, IdeLang
 
 struct _IdeCLanguageClass
 {
-  IdeObjectClass parent;
+  IdeLanguageClass parent;
 };
 
 G_END_DECLS


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