summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page
diff options
context:
space:
mode:
Diffstat (limited to 'tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page')
-rw-r--r--tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page
new file mode 100644
index 00000000..f13d690f
--- /dev/null
+++ b/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+
+<page id="GIRepository.Repository.get_default"
+ type="topic"
+ style="function"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/experimental/ui/">
+ <info>
+ <link type="guide" xref="GIRepository.Repository" group="function"/>
+ <api:function>
+ <api:returns>
+ <api:type>GIRepository.Repository</api:type>
+ </api:returns>
+ <api:name>g_irepository_get_default</api:name>
+ </api:function>
+ </info>
+ <title>get_default</title>
+<synopsis><code mime="text/x-python">
+@returns(GIRepository.Repository)
+def GIRepository.Repository.get_default()
+</code></synopsis>
+<p>Returns the singleton process-global default <link xref="GIRepository">GIRepository</link>. It is
+not currently supported to have multiple repositories in a
+particular process, but this function is provided in the unlikely
+eventuality that it would become possible, and as a convenience for
+higher level language bindings to conform to the GObject method
+call conventions.
+All methods on <link xref="GIRepository">GIRepository</link> also accept %NULL as an instance
+parameter to mean this default repository, which is usually more
+convenient for C.</p>
+</page>