Skip to content

Commit 61dda8b

Browse files
gdk4-macos: Ignore Monitor.get_geometry
The function does not have any implementation
1 parent a645634 commit 61dda8b

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
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 & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +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(self_.as_ref().to_glib_none().0, geometry.to_glib_none_mut().0);
25-
}
26-
}
27-
2819
#[doc(alias = "gdk_macos_monitor_get_workarea")]
2920
#[doc(alias = "get_workarea")]
3021
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ extern "C" {
211211
// GdkMacosMonitor
212212
//=========================================================================
213213
pub fn gdk_macos_monitor_get_type() -> GType;
214-
pub fn gdk_macos_monitor_get_geometry(self_: *mut gdk::GdkMonitor, geometry: *mut gdk::GdkRectangle);
215214
pub fn gdk_macos_monitor_get_workarea(monitor: *mut gdk::GdkMonitor, geometry: *mut gdk::GdkRectangle);
216215

217216
//=========================================================================

0 commit comments

Comments
 (0)