[gtksourceview] Include CompletionWords in the gir geration. And add missing docs.



commit afd65c3602342fe1821211932541fb9a51cf42dd
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jun 15 15:53:30 2010 +0200

    Include CompletionWords in the gir geration. And add missing docs.

 gtksourceview/Makefile.am                          |   10 ++++++++-
 .../words/gtksourcecompletionwords.c               |   21 ++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index df143fa..6276838 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -157,6 +157,10 @@ CLEANFILES = 					\
 	stamp-gtksourceview-typebuiltins.h	\
 	stamp-gtksourceview-typebuiltins.c
 
+libgtksourcecompletionwords_files =	\
+	./completion-providers/words/gtksourcecompletionwords.h	\
+	./completion-providers/words/gtksourcecompletionwords.c
+
 if HAVE_INTROSPECTION
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS = GtkSource-3.0.gir
@@ -166,7 +170,11 @@ INTROSPECTION_SCANNER_ARGS = -I$(top_srcdir)
 GtkSource_3_0_gir_NAMESPACE = GtkSource
 GtkSource_3_0_gir_VERSION = 3.0
 GtkSource_3_0_gir_LIBS = libgtksourceview-3.0.la
-GtkSource_3_0_gir_FILES = $(libgtksourceview_headers) $(libgtksourceview_c_files)
+GtkSource_3_0_gir_FILES =			\
+	$(libgtksourcecompletionwords_files)	\
+	$(libgtksourceview_headers)		\
+	$(libgtksourceview_c_files)
+
 GtkSource_3_0_gir_INCLUDES = Gtk-3.0
 GtkSource_3_0_gir_PACKAGES = gtksourceview-3.0
 
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index 49e97ef..1ebfbc3 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -580,6 +580,13 @@ gtk_source_completion_words_init (GtkSourceCompletionWords *self)
 	self->priv->library = gtk_source_completion_words_library_new ();
 }
 
+/**
+ * gtk_source_completion_words_new:
+ * @name: (allow-none): The name for the provider
+ * @icon: (allow-none): A specific icon for the provider
+ *
+ * Returns: a new #GtkSourceCompletionWords provider
+ */
 GtkSourceCompletionWords *
 gtk_source_completion_words_new (const gchar *name,
                                  GdkPixbuf   *icon)
@@ -599,6 +606,13 @@ buffer_destroyed (BufferBinding *binding)
 	g_slice_free (BufferBinding, binding);
 }
 
+/**
+ * gtk_source_completion_words_register:
+ * @words: a #GtkSourceCompletionWords
+ * @buffer: a #GtkTextBuffer
+ *
+ * Registers @buffer in the @words provider.
+ */
 void
 gtk_source_completion_words_register (GtkSourceCompletionWords *words,
                                       GtkTextBuffer            *buffer)
@@ -638,6 +652,13 @@ gtk_source_completion_words_register (GtkSourceCompletionWords *words,
 	                                       binding);
 }
 
+/**
+ * gtk_source_completion_words_unregister:
+ * @words: a #GtkSourceCompletionWords
+ * @buffer: a #GtkTextBuffer
+ *
+ * Unregisters @buffer from teh @words provider.
+ */
 void
 gtk_source_completion_words_unregister (GtkSourceCompletionWords *words,
                                         GtkTextBuffer            *buffer)



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