Skip to content

Commit

Permalink
gtk: Don't generate duplicate getter/setter for GraphicsOffload
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Apr 25, 2024
1 parent 1fa4d01 commit 933b69f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 8 additions & 1 deletion gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ generate = [
"Gtk.GestureRotate",
"Gtk.GestureSwipe",
"Gtk.GestureZoom",
"Gtk.GraphicsOffload",
"Gtk.GraphicsOffloadEnabled",
"Gtk.Grid",
"Gtk.GridLayout",
Expand Down Expand Up @@ -1371,6 +1370,14 @@ status = "generate"
[object.signal.return]
nullable = true

[[object]]
name = "Gtk.GraphicsOffload"
status = "generate"
[[object.property]]
name = "black-background"
generate = ["notify"] # already has a getter/setter


[[object]]
name = "Gtk.GridLayoutChild"
status = "generate"
Expand Down
10 changes: 0 additions & 10 deletions gtk4/src/auto/graphics_offload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,6 @@ impl GraphicsOffload {
}
}

#[doc(alias = "black-background")]
pub fn get_property_black_background(&self) -> bool {
ObjectExt::property(self, "black-background")
}

#[doc(alias = "black-background")]
pub fn set_property_black_background(&self, black_background: bool) {
ObjectExt::set_property(self, "black-background", black_background)
}

#[doc(alias = "black-background")]
pub fn connect_black_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_black_background_trampoline<
Expand Down

0 comments on commit 933b69f

Please sign in to comment.