Skip to content

Commit 24cbe27

Browse files
sdroegebilelmoussaoui
authored andcommitted
Update GIR files
1 parent 5c1e490 commit 24cbe27

File tree

6 files changed

+383
-82
lines changed

6 files changed

+383
-82
lines changed

GLib-2.0.gir

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,10 @@ than #gsize.</doc>
555555
</array>
556556
</return-value>
557557
<parameters>
558-
<parameter name="data" transfer-ownership="none">
559-
<doc xml:space="preserve">an array of elements of @element_size</doc>
558+
<parameter name="data" transfer-ownership="full" nullable="1" allow-none="1">
559+
<doc xml:space="preserve">an array
560+
of elements of @element_size, %NULL terminated,
561+
or %NULL for an empty array</doc>
560562
<array c:type="gpointer">
561563
<type name="gpointer" c:type="gpointer"/>
562564
</array>
@@ -853,8 +855,9 @@ This did not actually work, so any such code should be removed.</doc>
853855
the underlying array is preserved for use elsewhere and returned
854856
to the caller.
855857

856-
If the array was created with the @zero_terminate property
857-
set to %TRUE, the returned data is zero terminated too.
858+
Note that if the array was created with the @zero_terminate
859+
property set to %TRUE, this may still return %NULL if the length
860+
of the array was zero and data was not yet allocated.
858861

859862
If array elements contain dynamically-allocated memory,
860863
the array elements should also be freed by the caller.
@@ -41291,8 +41294,10 @@ than #gsize.</doc>
4129141294
</array>
4129241295
</return-value>
4129341296
<parameters>
41294-
<parameter name="data" transfer-ownership="none">
41295-
<doc xml:space="preserve">an array of elements of @element_size</doc>
41297+
<parameter name="data" transfer-ownership="full" nullable="1" allow-none="1">
41298+
<doc xml:space="preserve">an array
41299+
of elements of @element_size, %NULL terminated,
41300+
or %NULL for an empty array</doc>
4129641301
<array c:type="gpointer">
4129741302
<type name="gpointer" c:type="gpointer"/>
4129841303
</array>

GModule-2.0.gir

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,11 @@ and/or use gtk-doc annotations. -->
773773
<record name="Module" c:type="GModule" disguised="1" opaque="1">
774774
<doc xml:space="preserve">The #GModule struct is an opaque data structure to represent a
775775
[dynamically-loaded module](modules.html#dynamic-loading-of-modules).
776-
It should only be accessed via the following functions.</doc>
776+
It should only be accessed via the following functions.
777+
778+
To ensure correct lock ordering, these functions must not be called from
779+
global constructors (for example, those using GCC&#x2019;s
780+
`__attribute__((constructor))` attribute).</doc>
777781
<method name="close" c:identifier="g_module_close">
778782
<doc xml:space="preserve">Closes a module.</doc>
779783
<return-value transfer-ownership="none">

Gdk-4.0.gir

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5739,7 +5739,7 @@ Initially, the hotspot is at the top left corner of the drag surface.</doc>
57395739
</parameter>
57405740
</parameters>
57415741
</method>
5742-
<property name="actions" writable="1" transfer-ownership="none" getter="get_actions" default-value="0">
5742+
<property name="actions" writable="1" transfer-ownership="none" getter="get_actions" default-value="GDK_ACTION_NONE">
57435743
<doc xml:space="preserve">The possible actions of this drag.</doc>
57445744
<type name="DragAction"/>
57455745
</property>
@@ -5759,7 +5759,7 @@ Initially, the hotspot is at the top left corner of the drag surface.</doc>
57595759
<doc xml:space="preserve">The possible formats that the drag can provide its data in.</doc>
57605760
<type name="ContentFormats"/>
57615761
</property>
5762-
<property name="selected-action" writable="1" transfer-ownership="none" getter="get_selected_action" default-value="0">
5762+
<property name="selected-action" writable="1" transfer-ownership="none" getter="get_selected_action" default-value="GDK_ACTION_NONE">
57635763
<doc xml:space="preserve">The currently selected action of the drag.</doc>
57645764
<type name="DragAction"/>
57655765
</property>
@@ -5797,6 +5797,9 @@ The drag object can now free all miscellaneous data.</doc>
57975797
<bitfield name="DragAction" glib:type-name="GdkDragAction" glib:get-type="gdk_drag_action_get_type" c:type="GdkDragAction">
57985798
<doc xml:space="preserve">Used in `GdkDrop` and `GdkDrag` to indicate the actions that the
57995799
destination can and should do with the dropped data.</doc>
5800+
<member name="none" value="0" c:identifier="GDK_ACTION_NONE" version="4.20" glib:nick="none" glib:name="GDK_ACTION_NONE">
5801+
<doc xml:space="preserve">No action.</doc>
5802+
</member>
58005803
<member name="copy" value="1" c:identifier="GDK_ACTION_COPY" glib:nick="copy" glib:name="GDK_ACTION_COPY">
58015804
<doc xml:space="preserve">Copy the data.</doc>
58025805
</member>
@@ -5816,7 +5819,7 @@ destination can and should do with the dropped data.</doc>
58165819
<doc xml:space="preserve">Checks if @action represents a single action or includes
58175820
multiple actions.
58185821

5819-
When @action is 0 - ie no action was given, %TRUE
5822+
When @action is `GDK_ACTION_NONE` - ie no action was given, `TRUE`
58205823
is returned.</doc>
58215824
<return-value transfer-ownership="none">
58225825
<doc xml:space="preserve">%TRUE if exactly one action was given</doc>
@@ -6096,7 +6099,8 @@ available via [[email protected]_actions].</doc>
60966099
<type name="Drop" c:type="GdkDrop*"/>
60976100
</instance-parameter>
60986101
<parameter name="action" transfer-ownership="none">
6099-
<doc xml:space="preserve">the action performed by the destination or 0 if the drop failed</doc>
6102+
<doc xml:space="preserve">the action performed by the destination or `GDK_ACTION_NONE` if the
6103+
drop failed</doc>
61006104
<type name="DragAction" c:type="GdkDragAction"/>
61016105
</parameter>
61026106
</parameters>
@@ -6340,8 +6344,8 @@ actions first and then later call this function again.</doc>
63406344
<type name="Drop" c:type="GdkDrop*"/>
63416345
</instance-parameter>
63426346
<parameter name="actions" transfer-ownership="none">
6343-
<doc xml:space="preserve">Supported actions of the destination, or 0 to indicate
6344-
that a drop will not be accepted</doc>
6347+
<doc xml:space="preserve">Supported actions of the destination, or `GDK_ACTION_NONE` to
6348+
indicate that a drop will not be accepted</doc>
63456349
<type name="DragAction" c:type="GdkDragAction"/>
63466350
</parameter>
63476351
<parameter name="preferred" transfer-ownership="none">
@@ -22321,7 +22325,7 @@ indicate a higher priority.</doc>
2232122325
<doc xml:space="preserve">Checks if @action represents a single action or includes
2232222326
multiple actions.
2232322327

22324-
When @action is 0 - ie no action was given, %TRUE
22328+
When @action is `GDK_ACTION_NONE` - ie no action was given, `TRUE`
2232522329
is returned.</doc>
2232622330
<return-value transfer-ownership="none">
2232722331
<doc xml:space="preserve">%TRUE if exactly one action was given</doc>

Gsk-4.0.gir

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ The 4 sides of the border can have different widths and colors.</doc>
280280
<doc xml:space="preserve">A Broadway based renderer.
281281

282282
See [[email protected]].</doc>
283-
<constructor name="new" c:identifier="gsk_broadway_renderer_new">
283+
<constructor name="new" c:identifier="gsk_broadway_renderer_new" deprecated="1" deprecated-version="4.20">
284284
<doc xml:space="preserve">Creates a new Broadway renderer.
285285

286286
The Broadway renderer is the default renderer for the broadway backend.
@@ -289,6 +289,7 @@ call to gsk_renderer_realize().
289289

290290
This function is only available when GTK was compiled with Broadway
291291
support.</doc>
292+
<doc-deprecated xml:space="preserve">Broadway will be retired in GTK 5</doc-deprecated>
292293
<return-value transfer-ownership="full">
293294
<doc xml:space="preserve">a new Broadway renderer.</doc>
294295
<type name="Renderer" c:type="GskRenderer*"/>
@@ -5955,7 +5956,7 @@ See [[email protected]] for details.</doc>
59555956
<method name="set_line_width" c:identifier="gsk_stroke_set_line_width" version="4.14">
59565957
<doc xml:space="preserve">Sets the line width to be used when stroking.
59575958

5958-
The line width must be &gt; 0.</doc>
5959+
The line width must be &gt;= 0.</doc>
59595960
<return-value transfer-ownership="none">
59605961
<type name="none" c:type="void"/>
59615962
</return-value>
@@ -6457,6 +6458,50 @@ if you want to keep it around.</doc>
64576458
</parameter>
64586459
</parameters>
64596460
</method>
6461+
<method name="matrix_2d" c:identifier="gsk_transform_matrix_2d" version="4.20">
6462+
<doc xml:space="preserve">Multiplies @next with the matrix [ xx yx x0; xy yy y0; 0 0 1 ].
6463+
6464+
The result of calling [[email protected]_2d] on the returned
6465+
[[email protected]] should match the input passed to this
6466+
function.
6467+
6468+
This function consumes @next. Use [[email protected]] first
6469+
if you want to keep it around.</doc>
6470+
<return-value transfer-ownership="full" nullable="1">
6471+
<doc xml:space="preserve">The new transform</doc>
6472+
<type name="Transform" c:type="GskTransform*"/>
6473+
</return-value>
6474+
<parameters>
6475+
<instance-parameter name="next" transfer-ownership="full" nullable="1" allow-none="1">
6476+
<doc xml:space="preserve">the next transform</doc>
6477+
<type name="Transform" c:type="GskTransform*"/>
6478+
</instance-parameter>
6479+
<parameter name="xx" transfer-ownership="none">
6480+
<doc xml:space="preserve">the xx member</doc>
6481+
<type name="gfloat" c:type="float"/>
6482+
</parameter>
6483+
<parameter name="yx" transfer-ownership="none">
6484+
<doc xml:space="preserve">the yx member</doc>
6485+
<type name="gfloat" c:type="float"/>
6486+
</parameter>
6487+
<parameter name="xy" transfer-ownership="none">
6488+
<doc xml:space="preserve">the xy member</doc>
6489+
<type name="gfloat" c:type="float"/>
6490+
</parameter>
6491+
<parameter name="yy" transfer-ownership="none">
6492+
<doc xml:space="preserve">the yy member</doc>
6493+
<type name="gfloat" c:type="float"/>
6494+
</parameter>
6495+
<parameter name="dx" transfer-ownership="none">
6496+
<doc xml:space="preserve">the x0 member</doc>
6497+
<type name="gfloat" c:type="float"/>
6498+
</parameter>
6499+
<parameter name="dy" transfer-ownership="none">
6500+
<doc xml:space="preserve">the y0 member</doc>
6501+
<type name="gfloat" c:type="float"/>
6502+
</parameter>
6503+
</parameters>
6504+
</method>
64606505
<method name="perspective" c:identifier="gsk_transform_perspective">
64616506
<doc xml:space="preserve">Applies a perspective projection transform.
64626507

0 commit comments

Comments
 (0)