Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e8e6f14474 | |||
| 7cd9643702 | |||
| 32d86da7c2 | |||
| bf90bccef8 | |||
| 7d80600657 | |||
|
|
5ab8f64e88 | ||
|
|
a61230b012 |
@@ -18,3 +18,4 @@ env:
|
|||||||
global:
|
global:
|
||||||
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|
||||||
- secure: IjahTjjwmuvig/wTDMwxpk1F3Ywi2d0r17+JmOXHPdbfSfhi4puiTzsOgMjBhFtosTwcvlBeFwwFeTtl9KFNG165xm9Fqbhcez9sx+hS+EWZR/MBPFhKorJlgva0nuH8L1cxDUP+mDkcV/BdXCDeT7ml+y/FqEDAI4N0lwEsVMk=
|
- secure: IjahTjjwmuvig/wTDMwxpk1F3Ywi2d0r17+JmOXHPdbfSfhi4puiTzsOgMjBhFtosTwcvlBeFwwFeTtl9KFNG165xm9Fqbhcez9sx+hS+EWZR/MBPFhKorJlgva0nuH8L1cxDUP+mDkcV/BdXCDeT7ml+y/FqEDAI4N0lwEsVMk=
|
||||||
|
- secure: B8QPcNgwOmbJ8dNJn/p/tE1cLeUOLTo/Oj7nOBkK1tatMgS6yfQFa5pyNEqeTyZAyNptssqSH1BpRC3RxTJ/b+kFzdy8Kq1nkJfp9R9zTY34w5gWukfmmTH4Qe2lyWY/DKL1lGVjb+8mroV9sPaS5Y4DqYHbeYtpWF8Gi27vIL4=
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "libnotify"
|
name = "libnotify"
|
||||||
version = "0.2.0"
|
version = "0.4.1"
|
||||||
authors = ["Mika Attila <radiantstatue@gmail.com>"]
|
authors = ["Mika Attila <radiantstatue@gmail.com>", "Julian Ospald <hasufell@posteo.de>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "Rust bindings to libnotify"
|
description = "Rust bindings to libnotify"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -11,6 +11,6 @@ documentation = "http://crumblingstatue.github.io/doc/libnotify/libnotify/"
|
|||||||
keywords = ["libnotify", "notification"]
|
keywords = ["libnotify", "notification"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libnotify-sys = "0.2.0"
|
libnotify-sys = "0.3"
|
||||||
glib-2-0-sys = "0.46.0"
|
glib-2-0-sys = "0.46.0"
|
||||||
gtypes = "0.1.2"
|
gtypes = "0.2"
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ impl Context {
|
|||||||
None => None,
|
None => None,
|
||||||
};
|
};
|
||||||
let body_ptr = match body {
|
let body_ptr = match body {
|
||||||
Some(body) => body.as_ptr(),
|
Some(ref body) => body.as_ptr(),
|
||||||
None => std::ptr::null(),
|
None => std::ptr::null(),
|
||||||
};
|
};
|
||||||
let icon = match icon {
|
let icon = match icon {
|
||||||
@@ -138,9 +138,10 @@ impl Context {
|
|||||||
None => None,
|
None => None,
|
||||||
};
|
};
|
||||||
let icon_ptr = match icon {
|
let icon_ptr = match icon {
|
||||||
Some(icon) => icon.as_ptr(),
|
Some(ref icon) => icon.as_ptr(),
|
||||||
None => std::ptr::null(),
|
None => std::ptr::null(),
|
||||||
};
|
};
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let n = sys::notify_notification_new(summary.as_ptr(), body_ptr, icon_ptr);
|
let n = sys::notify_notification_new(summary.as_ptr(), body_ptr, icon_ptr);
|
||||||
if n.is_null() {
|
if n.is_null() {
|
||||||
|
|||||||
Reference in New Issue
Block a user