Message::get_src() can return None

The src is optional
This commit is contained in:
Sebastian Dröge 2017-11-16 13:58:42 +02:00
parent 86b787ac81
commit 1dbc63dcb3

View file

@ -35,7 +35,7 @@ unsafe impl MiniObject for MessageRef {
}
impl MessageRef {
pub fn get_src(&self) -> Object {
pub fn get_src(&self) -> Option<Object> {
unsafe { from_glib_none((*self.as_ptr()).src) }
}