@@ -1173,6 +1173,26 @@ color states will never compare equal.</doc>
1173
1173
</parameter>
1174
1174
</parameters>
1175
1175
</method>
1176
+ <method name="equivalent" c:identifier="gdk_color_state_equivalent" version="4.20">
1177
+ <doc xml:space="preserve">Compares two `GdkColorStates` for equivalence.
1178
+
1179
+ Two objects that represent the same color state should be equivalent,
1180
+ even though they may not be equal in the sense of [method@Gdk.ColorState.equal].</doc>
1181
+ <return-value transfer-ownership="none">
1182
+ <doc xml:space="preserve">%TRUE if the two color states are equivalent</doc>
1183
+ <type name="gboolean" c:type="gboolean"/>
1184
+ </return-value>
1185
+ <parameters>
1186
+ <instance-parameter name="self" transfer-ownership="none">
1187
+ <doc xml:space="preserve">a `GdkColorState`</doc>
1188
+ <type name="ColorState" c:type="GdkColorState*"/>
1189
+ </instance-parameter>
1190
+ <parameter name="other" transfer-ownership="none">
1191
+ <doc xml:space="preserve">another `GdkColorStatee`</doc>
1192
+ <type name="ColorState" c:type="GdkColorState*"/>
1193
+ </parameter>
1194
+ </parameters>
1195
+ </method>
1176
1196
<method name="ref" c:identifier="gdk_color_state_ref" version="4.16">
1177
1197
<doc xml:space="preserve">Increase the reference count of @self.</doc>
1178
1198
<return-value transfer-ownership="full">
@@ -6860,7 +6880,10 @@ If the last reference is dropped, the structure is freed.</doc>
6860
6880
<doc xml:space="preserve">A touchpad hold gesture event, the current state is determined by its phase
6861
6881
field.</doc>
6862
6882
</member>
6863
- <member name="event_last" value="29" c:identifier="GDK_EVENT_LAST" glib:nick="event-last" glib:name="GDK_EVENT_LAST">
6883
+ <member name="pad_dial" value="29" c:identifier="GDK_PAD_DIAL" glib:nick="pad-dial" glib:name="GDK_PAD_DIAL">
6884
+ <doc xml:space="preserve">A tablet pad axis event from a "dial".</doc>
6885
+ </member>
6886
+ <member name="event_last" value="30" c:identifier="GDK_EVENT_LAST" glib:nick="event-last" glib:name="GDK_EVENT_LAST">
6864
6887
<doc xml:space="preserve">marks the end of the GdkEventType enumeration.</doc>
6865
6888
</member>
6866
6889
</enumeration>
@@ -20092,12 +20115,14 @@ data.</doc>
20092
20115
<implements name="Paintable"/>
20093
20116
<implements name="Gio.Icon"/>
20094
20117
<implements name="Gio.LoadableIcon"/>
20095
- <constructor name="new_for_pixbuf" c:identifier="gdk_texture_new_for_pixbuf">
20118
+ <constructor name="new_for_pixbuf" c:identifier="gdk_texture_new_for_pixbuf" deprecated="1" deprecated-version="4.20" >
20096
20119
<doc xml:space="preserve">Creates a new texture object representing the `GdkPixbuf`.
20097
20120
20098
20121
This function is threadsafe, so that you can e.g. use GTask
20099
- and [method@Gio.Task.run_in_thread] to avoid blocking the main thread
20100
- while loading a big image.</doc>
20122
+ and [method@Gio.Task.run_in_thread] to avoid blocking the main
20123
+ thread while loading a big image.</doc>
20124
+ <doc-deprecated xml:space="preserve">Use e.g. libglycin, which can load many image
20125
+ formats into a `GdkTexture`</doc-deprecated>
20101
20126
<return-value transfer-ownership="full">
20102
20127
<doc xml:space="preserve">a new `GdkTexture`</doc>
20103
20128
<type name="Texture" c:type="GdkTexture*"/>
@@ -20115,6 +20140,10 @@ while loading a big image.</doc>
20115
20140
The file format is detected automatically. The supported formats
20116
20141
are PNG, JPEG and TIFF, though more formats might be available.
20117
20142
20143
+ Note that this function should not be used with untrusted data.
20144
+ Use a proper image loading framework such as libglycin, which can
20145
+ load many image formats into a `GdkTexture`.
20146
+
20118
20147
If %NULL is returned, then @error will be set.
20119
20148
20120
20149
This function is threadsafe, so that you can e.g. use GTask
@@ -20137,6 +20166,10 @@ while loading a big image.</doc>
20137
20166
The file format is detected automatically. The supported formats
20138
20167
are PNG, JPEG and TIFF, though more formats might be available.
20139
20168
20169
+ Note that this function should not be used with untrusted data.
20170
+ Use a proper image loading framework such as libglycin, which can
20171
+ load many image formats into a `GdkTexture`.
20172
+
20140
20173
If %NULL is returned, then @error will be set.
20141
20174
20142
20175
This function is threadsafe, so that you can e.g. use GTask
@@ -20159,6 +20192,10 @@ while loading a big image.</doc>
20159
20192
The file format is detected automatically. The supported formats
20160
20193
are PNG, JPEG and TIFF, though more formats might be available.
20161
20194
20195
+ Note that this function should not be used with untrusted data.
20196
+ Use a proper image loading framework such as libglycin, which can
20197
+ load many image formats into a `GdkTexture`.
20198
+
20162
20199
If %NULL is returned, then @error will be set.
20163
20200
20164
20201
This function is threadsafe, so that you can e.g. use GTask
@@ -20179,7 +20216,7 @@ while loading a big image.</doc>
20179
20216
<doc xml:space="preserve">Creates a new texture by loading an image from a resource.
20180
20217
20181
20218
The file format is detected automatically. The supported formats
20182
- are PNG and JPEG , though more formats might be available.
20219
+ are PNG, JPEG and TIFF , though more formats might be available.
20183
20220
20184
20221
It is a fatal error if @resource_path does not specify a valid
20185
20222
image resource and the program will abort if that happens.
@@ -20309,9 +20346,9 @@ downloading the texture.</doc>
20309
20346
20310
20347
This is a utility function intended for debugging and testing.
20311
20348
If you want more control over formats, proper error handling or
20312
- want to store to a [iface@Gio.File] or other location, you might want to
20313
- use [method@Gdk.Texture.save_to_png_bytes] or look into the
20314
- gdk-pixbuf library.</doc>
20349
+ want to store to a [iface@Gio.File] or other location, you might
20350
+ want to use [method@Gdk.Texture.save_to_png_bytes] or look into
20351
+ the libglycin library.</doc>
20315
20352
<return-value transfer-ownership="none">
20316
20353
<doc xml:space="preserve">%TRUE if saving succeeded, %FALSE on failure.</doc>
20317
20354
<type name="gboolean" c:type="gboolean"/>
@@ -20337,7 +20374,7 @@ portable way to do that.
20337
20374
20338
20375
If you need more control over the generated image, such as
20339
20376
attaching metadata, you should look into an image handling
20340
- library such as the gdk-pixbuf library.
20377
+ library such as the libglycin library.
20341
20378
20342
20379
If you are dealing with high dynamic range float data, you
20343
20380
might also want to consider [method@Gdk.Texture.save_to_tiff_bytes]
@@ -21952,11 +21989,12 @@ set with cairo_surface_set_device_offset().</doc>
21952
21989
</parameter>
21953
21990
</parameters>
21954
21991
</function>
21955
- <function name="cairo_set_source_pixbuf" c:identifier="gdk_cairo_set_source_pixbuf">
21992
+ <function name="cairo_set_source_pixbuf" c:identifier="gdk_cairo_set_source_pixbuf" deprecated="1" deprecated-version="4.20" >
21956
21993
<doc xml:space="preserve">Sets the given pixbuf as the source pattern for @cr.
21957
21994
21958
21995
The pattern has an extend mode of %CAIRO_EXTEND_NONE and is aligned
21959
21996
so that the origin of @pixbuf is @pixbuf_x, @pixbuf_y.</doc>
21997
+ <doc-deprecated xml:space="preserve">Use cairo_set_source_surface() and gdk_texture_download()</doc-deprecated>
21960
21998
<return-value transfer-ownership="none">
21961
21999
<type name="none" c:type="void"/>
21962
22000
</return-value>
@@ -22152,7 +22190,11 @@ is returned.</doc>
22152
22190
</parameters>
22153
22191
</function>
22154
22192
<function name="content_register_deserializer" c:identifier="gdk_content_register_deserializer">
22155
- <doc xml:space="preserve">Registers a function to deserialize object of a given type.</doc>
22193
+ <doc xml:space="preserve">Registers a function to deserialize object of a given type.
22194
+
22195
+ Since 4.20, when looking up a deserializer to use, GTK will
22196
+ use the last registered deserializer for a given mime type,
22197
+ so applications can override the built-in deserializers.</doc>
22156
22198
<return-value transfer-ownership="none">
22157
22199
<type name="none" c:type="void"/>
22158
22200
</return-value>
@@ -22180,7 +22222,11 @@ is returned.</doc>
22180
22222
</parameters>
22181
22223
</function>
22182
22224
<function name="content_register_serializer" c:identifier="gdk_content_register_serializer">
22183
- <doc xml:space="preserve">Registers a function to serialize objects of a given type.</doc>
22225
+ <doc xml:space="preserve">Registers a function to serialize objects of a given type.
22226
+
22227
+ Since 4.20, when looking up a serializer to use, GTK will
22228
+ use the last registered serializer for a given mime type,
22229
+ so applications can override the built-in serializers.</doc>
22184
22230
<return-value transfer-ownership="none">
22185
22231
<type name="none" c:type="void"/>
22186
22232
</return-value>
0 commit comments