[anjuta] libanjuta: Add "document-[added|removed]" signals to IAnjutaDocumentManager.



commit 787e49baa9d9dbccf9c502ee8bbae77aa5c2b62a
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Sun Jan 6 11:12:13 2013 +0100

    libanjuta: Add "document-[added|removed]" signals to IAnjutaDocumentManager.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691222

 libanjuta/interfaces/anjuta-idl-compiler.pl |    5 +++++
 libanjuta/interfaces/libanjuta.idl          |   21 +++++++++++++++++++++
 2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/libanjuta/interfaces/anjuta-idl-compiler.pl b/libanjuta/interfaces/anjuta-idl-compiler.pl
index 0499e24..b6df84c 100755
--- a/libanjuta/interfaces/anjuta-idl-compiler.pl
+++ b/libanjuta/interfaces/anjuta-idl-compiler.pl
@@ -142,6 +142,11 @@ my $type_map = {
 		"gtype" => "G_TYPE_OBJECT",
 		"type" => "IANJUTA_TYPE_ITERABLE",
 		"fail_return" => "NULL"
+	},
+	"IAnjutaDocument*" => {
+		"gtype" => "G_TYPE_OBJECT",
+		"type" => "IANJUTA_TYPE_DOCUMENT",
+		"fail_return" => "NULL"
 	}
 };
 
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 277c6c8..d69e1ae 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -2824,6 +2824,27 @@ interface IAnjutaDocumentManager
 	}
 
 	/**
+	* IAnjutaDocumentManager::document-added:
+	* @obj: Self
+	* @doc: The #IAnjutaDocument that was added.
+	* @err: Error propagation and reporting.
+	*
+	* Emitted when a document was added to the document manager.
+	*/
+	void ::document_added (IAnjutaDocument* doc);
+
+	/**
+	* IAnjutaDocumentManager::document-removed:
+	* @obj: Self
+	* @doc: The #IAnjutaDocument that was removed.
+	* @err: Error propagation and reporting.
+	*
+	* Emitted when a document was removed from the document manager.
+	*/
+	void ::document_removed (IAnjutaDocument* doc);
+
+
+	/**
 	 * ianjuta_document_manager_get_file:
 	 * @obj: Self
 	 * @filename: short filename



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