[anjuta] libanjuta: add gir annotations to IAnjutaDocumentManager
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: add gir annotations to IAnjutaDocumentManager
- Date: Mon, 10 Jan 2011 17:31:58 +0000 (UTC)
commit 44db690b976f450e6db2731fcd6d9f726a6063a4
Author: Abderrahim Kitouni <akitouni src gnome org>
Date: Thu Jan 6 23:38:56 2011 +0100
libanjuta: add gir annotations to IAnjutaDocumentManager
https://bugzilla.gnome.org/show_bug.cgi?id=639087
libanjuta/interfaces/libanjuta.idl | 130 +++++++++++-----------
plugins/language-support-vala/libanjuta-3.0.vapi | 6 +
2 files changed, 71 insertions(+), 65 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 0fef307..6755d44 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -2591,72 +2591,72 @@ interface IAnjutaDocumentManager
}
/**
- * ianjuta_document_manager_get_file:
- * @obj: Self
- * @filename: short filename
- * @err: Error propagation and reporting.
- *
- * Given the short filename, finds the file of the filename, if the
- * editor that has it loaded is found. If there is no editor that has
- * this file opened, returns NULL.
- *
- * Return value: the GFile for the given short filename
- */
+ * ianjuta_document_manager_get_file:
+ * @obj: Self
+ * @filename: short filename
+ * @err: Error propagation and reporting.
+ *
+ * Given the short filename, finds the file of the filename, if the
+ * editor that has it loaded is found. If there is no editor that has
+ * this file opened, returns NULL.
+ *
+ * Return value: (transfer full): the GFile for the given short filename
+ */
GFile* get_file (const gchar *filename);
/**
- * ianjuta_document_manager_find_document_with_file:
- * @obj: Self
- * @file: The file to find.
- * @err: Error propagation and reporting.
- *
- * Finds the document that has the file loaded. Only
- * the editor that matches the file will be searched.
- *
- * Return value: the document that corresponds to given file. NULL if
- * there is no editor loaded with this file.
- */
+ * ianjuta_document_manager_find_document_with_file:
+ * @obj: Self
+ * @file: The file to find.
+ * @err: Error propagation and reporting.
+ *
+ * Finds the document that has the file loaded. Only
+ * the editor that matches the file will be searched.
+ *
+ * Return value: (transfer none): the document that corresponds to given file. NULL if
+ * there is no editor loaded with this file.
+ */
IAnjutaDocument* find_document_with_file (GFile* file);
/**
- * ianjuta_document_manager_goto_file_line:
- * @obj: Self
- * @file: file to go to.
- * @lineno: the line number in the file to go to.
- * @err: Error propagation and reporting.
- *
- * Loads the given file if not loaded yet, set its editor as current editor
- * and moves cursor to the given line in the editor.
- *
- * Return value: the editor where the mark has been put. NULL if none.
- */
+ * ianjuta_document_manager_goto_file_line:
+ * @obj: Self
+ * @file: file to go to.
+ * @lineno: the line number in the file to go to.
+ * @err: Error propagation and reporting.
+ *
+ * Loads the given file if not loaded yet, set its editor as current editor
+ * and moves cursor to the given line in the editor.
+ *
+ * Return value: (transfer none): the editor where the mark has been put. NULL if none.
+ */
IAnjutaEditor* goto_file_line (GFile* file, gint lineno);
/**
- * ianjuta_document_manager_goto_file_line_mark:
- * @obj: Self
- * @file: file to go to.
- * @lineno: the line number in the file to go to.
- * @mark: TRUE if the line should be marked with a marker.
- * @err: Error propagation and reporting
- *
- * Loads the given file if not loaded yet, set its editor as current editor
- * and moves cursor to the given line in the editor. Optionally also marks
- * the line with line marker if @mark is given TRUE.
- *
- * Return value: the editor where the mark has been put. NULL if none.
- */
+ * ianjuta_document_manager_goto_file_line_mark:
+ * @obj: Self
+ * @file: file to go to.
+ * @lineno: the line number in the file to go to.
+ * @mark: TRUE if the line should be marked with a marker.
+ * @err: Error propagation and reporting
+ *
+ * Loads the given file if not loaded yet, set its editor as current editor
+ * and moves cursor to the given line in the editor. Optionally also marks
+ * the line with line marker if @mark is given TRUE.
+ *
+ * Return value: (transfer none): the editor where the mark has been put. NULL if none.
+ */
IAnjutaEditor* goto_file_line_mark (GFile* file, gint lineno, gboolean mark);
/**
- * ianjuta_document_manager_get_current_document:
- * @obj: Self
- * @err: Error propagation and reporting.
- *
- * Gets the current document.
- *
- * Return value: the currently active document. NULL if none is there.
- */
+ * ianjuta_document_manager_get_current_document:
+ * @obj: Self
+ * @err: Error propagation and reporting.
+ *
+ * Gets the current document.
+ *
+ * Return value: (transfer none): the currently active document. NULL if none is there.
+ */
IAnjutaDocument* get_current_document ();
/**
@@ -2684,17 +2684,17 @@ interface IAnjutaDocumentManager
List<GtkWidget*> get_doc_widgets ();
/**
- * ianjuta_document_manager_add_buffer:
- * @obj: Self
- * @name: Name of the editor buffer.
- * @content: Initial content of the buffer.
- * @err: Error propagation and reporting.
- *
- * Creates a new editor buffer of the given name and sets the given
- * content as its initial content.
- *
- * Return value: the IAnjutaEditor instance that has been added.
- */
+ * ianjuta_document_manager_add_buffer:
+ * @obj: Self
+ * @name: Name of the editor buffer.
+ * @content: Initial content of the buffer.
+ * @err: Error propagation and reporting.
+ *
+ * Creates a new editor buffer of the given name and sets the given
+ * content as its initial content.
+ *
+ * Return value: (transfer full): the IAnjutaEditor instance that has been added.
+ */
IAnjutaEditor* add_buffer (const gchar *name, const gchar* content);
/**
diff --git a/plugins/language-support-vala/libanjuta-3.0.vapi b/plugins/language-support-vala/libanjuta-3.0.vapi
index 6eacc65..df9ad97 100644
--- a/plugins/language-support-vala/libanjuta-3.0.vapi
+++ b/plugins/language-support-vala/libanjuta-3.0.vapi
@@ -1125,9 +1125,15 @@ namespace IAnjuta {
[CCode (cheader_filename = "libanjuta/interfaces/libanjuta-interfaces.h")]
public interface DocumentManager : GLib.Object {
public abstract void add_bookmark (GLib.File file, int line) throws GLib.Error;
+ public abstract IAnjuta.Editor add_buffer (string name, string content) throws GLib.Error;
public abstract void add_document (IAnjuta.Document document) throws GLib.Error;
public static GLib.Quark error_quark ();
+ public abstract unowned IAnjuta.Document find_document_with_file (GLib.File file) throws GLib.Error;
+ public abstract unowned IAnjuta.Document get_current_document () throws GLib.Error;
public abstract GLib.List<weak Gtk.Widget> get_doc_widgets () throws GLib.Error;
+ public abstract GLib.File get_file (string filename) throws GLib.Error;
+ public abstract unowned IAnjuta.Editor goto_file_line (GLib.File file, int lineno) throws GLib.Error;
+ public abstract unowned IAnjuta.Editor goto_file_line_mark (GLib.File file, int lineno, bool mark) throws GLib.Error;
public abstract bool remove_document (IAnjuta.Document document, bool save_before) throws GLib.Error;
public abstract void set_current_document (IAnjuta.Document document) throws GLib.Error;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]