Ospald, Julian
557ebbc93f
Fix examples
2017-07-11 15:18:40 +02:00
Ospald, Julian
6a96044a68
Fix examples
2017-07-11 14:36:21 +02:00
13850652a7
Switch to gir
2017-07-11 13:58:06 +02:00
437f2cc756
Rename new_notification() to new()
2017-07-10 01:09:21 +02:00
fe4d803efe
Small rewrite:
...
* Use error-chain for errors and expose them
* Don't use Context object, since the lifetimes get us in trouble
when used with gtk-rs, which has callback closures with static
lifetime. Instead we just expose notify_init()/notify_uninit() and
panic when functions are called before notify_init().
2017-07-10 01:01:36 +02:00
73eb0cc68d
Cosmetics
2017-07-09 14:25:30 +02:00
Mika Attila
a74f4c9888
Add convenience method to context for showing a notification
2015-11-03 10:06:33 +01:00
Mika Attila
94bb46164f
Add NotificationShowError
2015-11-03 00:49:12 +01:00
Mika Attila
445f0b6d13
Implement std::fmt::Display for the error types
2015-03-10 19:14:18 +01:00
Mika Attila
e2a758d947
Update show
example
2015-03-08 17:14:52 +01:00
Mika Attila
0e83385a01
Context::new_notification: Make body arg optional, add icon arg
2015-03-08 16:59:15 +01:00
Mika Attila
68b3d02ba2
Make sure Notification cannot outlive Context
2015-03-07 14:21:17 +01:00
Mika Attila
2d06fb7cc3
Implement a rudimentary API for showing a message.
2015-03-07 13:55:19 +01:00