Skip to content

Commit 85e6727

Browse files
gtk: Don't generate duplicate getter/setter for GraphicsOffload
1 parent d54b3d2 commit 85e6727

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

gtk4/Gir.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ generate = [
130130
"Gtk.GestureRotate",
131131
"Gtk.GestureSwipe",
132132
"Gtk.GestureZoom",
133-
"Gtk.GraphicsOffload",
134133
"Gtk.GraphicsOffloadEnabled",
135134
"Gtk.Grid",
136135
"Gtk.GridLayout",
@@ -1371,6 +1370,14 @@ status = "generate"
13711370
[object.signal.return]
13721371
nullable = true
13731372

1373+
[[object]]
1374+
name = "Gtk.GraphicsOffload"
1375+
status = "generate"
1376+
[[object.property]]
1377+
name = "black-background"
1378+
generate = ["notify"] # already has a getter/setter
1379+
1380+
13741381
[[object]]
13751382
name = "Gtk.GridLayoutChild"
13761383
status = "generate"

gtk4/src/auto/graphics_offload.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@ impl GraphicsOffload {
9595
}
9696
}
9797

98-
#[doc(alias = "black-background")]
99-
pub fn get_property_black_background(&self) -> bool {
100-
ObjectExt::property(self, "black-background")
101-
}
102-
103-
#[doc(alias = "black-background")]
104-
pub fn set_property_black_background(&self, black_background: bool) {
105-
ObjectExt::set_property(self, "black-background", black_background)
106-
}
107-
10898
#[doc(alias = "black-background")]
10999
pub fn connect_black_background_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
110100
unsafe extern "C" fn notify_black_background_trampoline<

0 commit comments

Comments
 (0)