Don't panic when getting a property failed

This commit is contained in:
Sebastian Dröge 2017-12-20 21:57:25 +02:00
parent bda421d218
commit c1ca7902f1

View file

@ -231,7 +231,7 @@ unsafe extern "C" fn get_property<T: ObjectType>(
ptr::write(value, ptr::read(v.to_glib_none().0));
mem::forget(v);
}
Err(_) => unimplemented!(),
Err(()) => eprintln!("Failed to get property"),
}
}
@ -340,7 +340,7 @@ unsafe extern "C" fn sub_get_property<T: ObjectType>(
ptr::write(value, ptr::read(v.to_glib_none().0));
mem::forget(v);
}
Err(_) => unimplemented!(),
Err(()) => eprintln!("Failed to get property"),
}
}