Skip to content

Commit

Permalink
gdk: Mark region as non-mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Jan 20, 2024
1 parent 9004477 commit 2558f70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion gdk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ generate = [
"Gdk.DmabufError",
"Gdk.DmabufFormats",
"Gdk.DmabufTexture",
"Gdk.DmabufTextureBuilder",
"Gdk.DNDEvent",
"Gdk.DragAction",
"Gdk.DragCancelReason",
Expand Down Expand Up @@ -423,6 +422,15 @@ name = "Gdk.DisplayManager"
status = "generate"
generate_builder = false

[[object]]
name = "Gdk.DmabufTextureBuilder"
status = "generate"
[[object.function]]
name = "set_update_region"
[[object.function.parameter]]
name = "region"
const = true

[[object]]
name = "Gdk.Drag"
status = "generate"
Expand Down
4 changes: 2 additions & 2 deletions gdk4/src/auto/dmabuf_texture_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ impl DmabufTextureBuilder {
}

#[doc(alias = "gdk_dmabuf_texture_builder_set_update_region")]
pub fn set_update_region(&self, region: Option<&mut cairo::Region>) {
pub fn set_update_region(&self, region: Option<&cairo::Region>) {
unsafe {
ffi::gdk_dmabuf_texture_builder_set_update_region(
self.to_glib_none().0,
region.to_glib_none_mut().0,
mut_override(region.to_glib_none().0),
);
}
}
Expand Down

0 comments on commit 2558f70

Please sign in to comment.