Commit Graph

24 Commits

Author SHA1 Message Date
Julian Ospald 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 a74f4c9888 Add convenience method to context for showing a notification 2015-11-03 10:06:33 +01:00
Mika Attila c698097ffd Remove unnecessary return statement 2015-11-03 09:17:20 +01:00
Mika Attila 8daef60a03 Implement From<ffi::NulError> for error types that have this variant 2015-11-03 09:15:16 +01:00
Mika Attila d282d2cd50 Add remaining missing documentation 2015-11-03 01:04:22 +01:00
Mika Attila 6251e0ad5c Expose ffi::NulError in nul errors 2015-11-03 01:01:49 +01:00
Mika Attila db2578ea92 Use fmt::Result 2015-11-03 00:55:09 +01:00
Mika Attila ba947a35f8 Rename InitFailure to InitError and add documentation 2015-11-03 00:54:03 +01:00
Mika Attila 503eee4441 Warn about missing documentation 2015-11-03 00:51:20 +01:00
Mika Attila 4b0aaab709 Update doc example 2015-11-03 00:50:27 +01:00
Mika Attila 94bb46164f Add NotificationShowError 2015-11-03 00:49:12 +01:00
Mika Attila 3dfc03aebd Format source code with rustfmt 2015-11-02 23:55:35 +01:00
Mika Attila ffd99b67e2 Depend on gtypes 2015-09-19 09:42:17 +02:00
Mika Attila dac1075025 Update to new crate naming rules 2015-03-25 19:04:43 +01:00
Mika Attila d3ad5323fb Update doc example 2015-03-10 19:18:44 +01:00
Mika Attila 445f0b6d13 Implement std::fmt::Display for the error types 2015-03-10 19:14:18 +01:00
Mika Attila a0955acabd Add example to the documentation 2015-03-10 08:46:54 +01:00
Mika Attila 4fa9d1d959 Add info to doc that there can only be one context at a time 2015-03-08 17:11:44 +01:00
Mika Attila 2e317752c2 Add some documentation 2015-03-08 17:07:50 +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 a0a98a6521 Remove `std_misc` feature attribute
Apparently, it's not needed anymore
2015-03-08 16:35:46 +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
Mika Attila 67a9f17d0e Add skeleton 2015-03-06 20:25:55 +01:00