summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-Python-expected/GIRepository.Repository.get_default.page
blob: a2eb6455c8db69cde385c613bfed02bd8ca482fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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 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 None as an instance
parameter to mean this default repository, which is usually more
convenient for C.</p>

<table>
<tr>
<td><p>Returns :</p></td>
<td><p>The global singleton <link xref="GIRepository">GIRepository</link></p></td>
</tr>
</table>
</page>