diff --git a/examples/globals.rs b/examples/globals.rs index 139494f..cffd198 100644 --- a/examples/globals.rs +++ b/examples/globals.rs @@ -16,7 +16,7 @@ fn main() -> io::Result<()> { // left blank }); // register the callbacks in wayland - registry.registry_listener(); + registry.register_listener(); // take a look around let _ = display.roundtrip(); diff --git a/src/registry.rs b/src/registry.rs index c6f6afc..4e5394e 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -97,7 +97,7 @@ impl Registry { { self.callbacks.global_remove = Some(Box::new(global_remove)); } - pub fn registry_listener(&mut self) { + pub fn register_listener(&mut self) { unsafe { wl_proxy_add_listener( self.raw.as_ptr() as *mut wl_proxy,