Skip to content

Commit 9fbe3a7

Browse files
gdk4-macos: Ignore Monitor.get_geometry
The function does not have any implementation
1 parent f1270e6 commit 9fbe3a7

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
]
@@ -25,3 +24,10 @@ manual = [
2524
"Gdk.Monitor",
2625
"Gdk.Rectangle",
2726
]
27+
28+
[[object]]
29+
name = "GdkMacos.MacosMonitor"
30+
status = "generate"
31+
[[object.function]]
32+
name = "get_geometry"
33+
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
@@ -16,18 +16,6 @@ glib::wrapper! {
1616
}
1717

1818
impl MacosMonitor {
19-
#[doc(alias = "gdk_macos_monitor_get_geometry")]
20-
#[doc(alias = "get_geometry")]
21-
pub fn geometry(self_: &impl IsA<gdk::Monitor>, geometry: &mut gdk::Rectangle) {
22-
assert_initialized_main_thread!();
23-
unsafe {
24-
ffi::gdk_macos_monitor_get_geometry(
25-
self_.as_ref().to_glib_none().0,
26-
geometry.to_glib_none_mut().0,
27-
);
28-
}
29-
}
30-
3119
#[doc(alias = "gdk_macos_monitor_get_workarea")]
3220
#[doc(alias = "get_workarea")]
3321
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
@@ -216,10 +216,6 @@ extern "C" {
216216
// GdkMacosMonitor
217217
//=========================================================================
218218
pub fn gdk_macos_monitor_get_type() -> GType;
219-
pub fn gdk_macos_monitor_get_geometry(
220-
self_: *mut gdk::GdkMonitor,
221-
geometry: *mut gdk::GdkRectangle,
222-
);
223219
pub fn gdk_macos_monitor_get_workarea(
224220
monitor: *mut gdk::GdkMonitor,
225221
geometry: *mut gdk::GdkRectangle,

0 commit comments

Comments
 (0)