Backport official GLib iterator safety fix for Linux desktop
This commit is contained in:
1 parent
43c43ebdc9
commit
8ef874c609
133 files changed
+55342
-2
No files matched your search
@@ -0,0 +1,15 @@
|
||||
// Take a look at the license at the top of the repository in the LICENSE file.
|
||||
|
||||
use crate::translate::*;
|
||||
use crate::{TimeType, TimeZone};
|
||||
|
||||
impl TimeZone {
|
||||
#[doc(alias = "g_time_zone_adjust_time")]
|
||||
pub fn adjust_time(&self, type_: TimeType, mut time: i64) -> (i32, i64) {
|
||||
unsafe {
|
||||
let res =
|
||||
ffi::g_time_zone_adjust_time(self.to_glib_none().0, type_.into_glib(), &mut time);
|
||||
(res, time)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user