Skip to content

Commit 4befb60

Browse files
sdroegebilelmoussaoui
authored andcommitted
gdk: Take self by value in DmabufTextureBuilder for consistency
1 parent d0f5350 commit 4befb60

File tree

3 files changed

+157
-384
lines changed

3 files changed

+157
-384
lines changed

gdk4/Gir.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,15 @@ status = "generate"
449449
name = "region"
450450
const = true
451451
[[object.function]]
452+
pattern = "set_(color_state|display|fd|fourcc|height|modifier|n_planes|offset|premultiplied|stride|update_region|update_texture|width)"
453+
# Take by value and return self
454+
manual = true
455+
[[object.function]]
452456
name = "build"
453457
manual = true # Can't be auto-generated
458+
[[object.property]]
459+
pattern = "(color-state|display|fourcc|height|modifier|n-planes|premultiplied|update-region|update-texture|width)"
460+
generate = [] # ignore get/set/notify
454461

455462
[[object]]
456463
name = "Gdk.Drag"
@@ -531,6 +538,7 @@ generate_builder = false
531538
const = true
532539
[[object.function]]
533540
pattern = "set_(context|format|has_mipmap|height|id|update_region|update_texture|width)"
541+
# Take by value and return self
534542
manual = true
535543
[[object.function]]
536544
pattern = "(set|get)_sync"

0 commit comments

Comments
 (0)