Skip to content

Commit 60eb473

Browse files
sdroegegithub-actions[bot]
authored andcommitted
Update GIR files
1 parent 5c1e490 commit 60eb473

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
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>

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>

Gtk-4.0.gir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28716,7 +28716,7 @@ the data.</doc>
2871628716
</parameter>
2871728717
</parameters>
2871828718
</method>
28719-
<property name="actions" writable="1" transfer-ownership="none" setter="set_actions" getter="get_actions" default-value="0">
28719+
<property name="actions" writable="1" transfer-ownership="none" setter="set_actions" getter="get_actions" default-value="GDK_ACTION_NONE">
2872028720
<doc xml:space="preserve">The `GdkDragActions` that this drop target supports.</doc>
2872128721
<type name="Gdk.DragAction"/>
2872228722
</property>
@@ -28828,7 +28828,7 @@ and performing the drop operation.</doc>
2882828828

2882928829
It can be used to set up custom highlighting.</doc>
2883028830
<return-value transfer-ownership="none">
28831-
<doc xml:space="preserve">Preferred action for this drag operation or 0 if
28831+
<doc xml:space="preserve">Preferred action for this drag operation or `GDK_ACTION_NONE` if
2883228832
dropping is not supported at the current @x,@y location.</doc>
2883328833
<type name="Gdk.DragAction"/>
2883428834
</return-value>
@@ -28855,7 +28855,7 @@ Its main purpose it to undo things done in
2885528855
<glib:signal name="motion" when="last">
2885628856
<doc xml:space="preserve">Emitted while the pointer is moving over the drop target.</doc>
2885728857
<return-value transfer-ownership="none">
28858-
<doc xml:space="preserve">Preferred action for this drag operation or 0 if
28858+
<doc xml:space="preserve">Preferred action for this drag operation or `GDK_ACTION_NONE` if
2885928859
dropping is not supported at the current @x,@y location.</doc>
2886028860
<type name="Gdk.DragAction"/>
2886128861
</return-value>
@@ -29002,7 +29002,7 @@ the data.</doc>
2900229002
</parameter>
2900329003
</parameters>
2900429004
</method>
29005-
<property name="actions" writable="1" transfer-ownership="none" setter="set_actions" getter="get_actions" default-value="0">
29005+
<property name="actions" writable="1" transfer-ownership="none" setter="set_actions" getter="get_actions" default-value="GDK_ACTION_NONE">
2900629006
<doc xml:space="preserve">The `GdkDragActions` that this drop target supports.</doc>
2900729007
<type name="Gdk.DragAction"/>
2900829008
</property>

0 commit comments

Comments
 (0)