diff --git a/Cargo.toml b/Cargo.toml index 76ed0dea..5158a2ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,5 +12,5 @@ keywords = ["libnotify", "notification"] [dependencies] libnotify-sys = "0.3" -glib-2-0-sys = "0.46.0" gtypes = "0.2" +glib-sys = "^0.3.4" diff --git a/src/lib.rs b/src/lib.rs index 236237aa..311fbd9d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ #![warn(missing_docs)] extern crate libnotify_sys as sys; -extern crate glib_2_0_sys as glib; +extern crate glib_sys; extern crate gtypes; use std::ffi::{self, CStr, CString}; @@ -188,13 +188,13 @@ impl<'a> Notification<'a> { /// on the screen. pub fn show(&'a self) -> Result<(), NotificationShowError> { unsafe { - let mut err: *mut glib::GError = std::ptr::null_mut(); + let mut err: *mut glib_sys::GError = std::ptr::null_mut(); sys::notify_notification_show(self.handle, &mut err); if !err.is_null() { let result = Err(NotificationShowError { message: CStr::from_ptr((*err).message).to_string_lossy().into_owned(), }); - glib::g_error_free(err); + glib_sys::g_error_free(err); return result; } Ok(())