7 Commits

Author SHA1 Message Date
e8e6f14474 Bump version to 0.4.1 2017-07-09 21:29:34 +02:00
7cd9643702 Update travis secret 2017-07-09 21:02:06 +02:00
32d86da7c2 Add Author 2017-07-09 21:01:45 +02:00
bf90bccef8 Undeprecate 2017-07-09 13:52:54 +02:00
7d80600657 Fix body/icon pointing to garbage
The pattern matching moves 'body' and drops it after
creation of the pointer. We must avoid the move, by using 'ref'.
2017-07-09 12:51:55 +02:00
Mika Attila
5ab8f64e88 Deprecate in favor of notify-rust 2017-04-01 17:55:11 +02:00
Mika Attila
a61230b012 Update dependencies 2016-01-27 23:11:38 +01:00
3 changed files with 8 additions and 6 deletions

View File

@@ -18,3 +18,4 @@ env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
- secure: IjahTjjwmuvig/wTDMwxpk1F3Ywi2d0r17+JmOXHPdbfSfhi4puiTzsOgMjBhFtosTwcvlBeFwwFeTtl9KFNG165xm9Fqbhcez9sx+hS+EWZR/MBPFhKorJlgva0nuH8L1cxDUP+mDkcV/BdXCDeT7ml+y/FqEDAI4N0lwEsVMk=
- secure: B8QPcNgwOmbJ8dNJn/p/tE1cLeUOLTo/Oj7nOBkK1tatMgS6yfQFa5pyNEqeTyZAyNptssqSH1BpRC3RxTJ/b+kFzdy8Kq1nkJfp9R9zTY34w5gWukfmmTH4Qe2lyWY/DKL1lGVjb+8mroV9sPaS5Y4DqYHbeYtpWF8Gi27vIL4=

View File

@@ -1,8 +1,8 @@
[package]
name = "libnotify"
version = "0.2.0"
authors = ["Mika Attila <radiantstatue@gmail.com>"]
version = "0.4.1"
authors = ["Mika Attila <radiantstatue@gmail.com>", "Julian Ospald <hasufell@posteo.de>"]
license = "MIT"
description = "Rust bindings to libnotify"
readme = "README.md"
@@ -11,6 +11,6 @@ documentation = "http://crumblingstatue.github.io/doc/libnotify/libnotify/"
keywords = ["libnotify", "notification"]
[dependencies]
libnotify-sys = "0.2.0"
libnotify-sys = "0.3"
glib-2-0-sys = "0.46.0"
gtypes = "0.1.2"
gtypes = "0.2"

View File

@@ -130,7 +130,7 @@ impl Context {
None => None,
};
let body_ptr = match body {
Some(body) => body.as_ptr(),
Some(ref body) => body.as_ptr(),
None => std::ptr::null(),
};
let icon = match icon {
@@ -138,9 +138,10 @@ impl Context {
None => None,
};
let icon_ptr = match icon {
Some(icon) => icon.as_ptr(),
Some(ref icon) => icon.as_ptr(),
None => std::ptr::null(),
};
unsafe {
let n = sys::notify_notification_new(summary.as_ptr(), body_ptr, icon_ptr);
if n.is_null() {