Skip to content

Commit b2d8c9f

Browse files
gdk4-macos: Ignore Monitor.get_geometry
The function does not have any implementation
1 parent 0db9921 commit b2d8c9f

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

gdk4-macos/Gir.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ generate = [
1616
"GdkMacos.MacosDisplay",
1717
"GdkMacos.MacosGLContext",
1818
"GdkMacos.MacosKeymap",
19-
"GdkMacos.MacosMonitor",
2019
"GdkMacos.MacosSeat",
2120
"GdkMacos.MacosSurface",
2221
]
@@ -31,3 +30,10 @@ manual = [
3130
"Gdk.Seat",
3231
"Gdk.Surface",
3332
]
33+
34+
[[object]]
35+
name = "GdkMacos.MacosMonitor"
36+
status = "generate"
37+
[[object.function]]
38+
name = "get_geometry"
39+
ignore = true # The function does not exists

gdk4-macos/src/auto/macos_monitor.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ glib::wrapper! {
1515
}
1616

1717
impl MacosMonitor {
18-
#[doc(alias = "gdk_macos_monitor_get_geometry")]
19-
#[doc(alias = "get_geometry")]
20-
pub fn geometry(self_: &impl IsA<gdk::Monitor>, geometry: &mut gdk::Rectangle) {
21-
assert_initialized_main_thread!();
22-
unsafe {
23-
ffi::gdk_macos_monitor_get_geometry(
24-
self_.as_ref().to_glib_none().0,
25-
geometry.to_glib_none_mut().0,
26-
);
27-
}
28-
}
29-
3018
#[doc(alias = "gdk_macos_monitor_get_workarea")]
3119
#[doc(alias = "get_workarea")]
3220
pub fn workarea(monitor: &impl IsA<gdk::Monitor>) -> gdk::Rectangle {

gdk4-macos/sys/Gir.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ external_libraries = [
1212

1313
[external_libraries]
1414
gdk4 = "Gdk"
15+
16+
17+
[[object]]
18+
name = "GdkMacos.MacosMonitor"
19+
status = "generate"
20+
[[object.function]]
21+
name = "get_geometry"
22+
ignore = true # The function does not exists

gdk4-macos/sys/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@ extern "C" {
215215
// GdkMacosMonitor
216216
//=========================================================================
217217
pub fn gdk_macos_monitor_get_type() -> GType;
218-
pub fn gdk_macos_monitor_get_geometry(
219-
self_: *mut gdk::GdkMonitor,
220-
geometry: *mut gdk::GdkRectangle,
221-
);
222218
pub fn gdk_macos_monitor_get_workarea(
223219
monitor: *mut gdk::GdkMonitor,
224220
geometry: *mut gdk::GdkRectangle,

0 commit comments

Comments
 (0)