Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit a0712e7

Browse files
authored
Merge pull request #429 from GuillaumeGomez/regen
Regen
2 parents 26aa57c + 18c4729 commit a0712e7

File tree

9 files changed

+93
-107
lines changed

9 files changed

+93
-107
lines changed

Gir.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,38 @@ status = "generate"
286286
[[object.function]]
287287
name = "intern_string"
288288
ignore = true
289+
[[object.function]]
290+
# Pid conversion issue
291+
name = "child_watch_add"
292+
ignore = true
293+
[[object.function]]
294+
# Pid conversion issue
295+
name = "child_watch_add_full"
296+
ignore = true
297+
[[object.function]]
298+
name = "idle_add"
299+
ignore = true
300+
[[object.function]]
301+
name = "idle_add_full"
302+
ignore = true
303+
[[object.function]]
304+
name = "timeout_add"
305+
ignore = true
306+
[[object.function]]
307+
name = "timeout_add_full"
308+
ignore = true
309+
[[object.function]]
310+
name = "timeout_add_seconds"
311+
ignore = true
312+
[[object.function]]
313+
name = "timeout_add_seconds_full"
314+
ignore = true
315+
[[object.function]]
316+
name = "unix_signal_add"
317+
ignore = true
318+
[[object.function]]
319+
name = "unix_signal_add_full"
320+
ignore = true
289321
[[object.constant]]
290322
pattern = "DIR_SEPARATOR(_S)?"
291323
#not cross-platform
@@ -423,6 +455,12 @@ concurrency = "send+sync"
423455
name = "ref_thread_default"
424456
[object.function.return]
425457
nullable = false
458+
[[object.function]]
459+
name = "invoke"
460+
ignore = true
461+
[[object.function]]
462+
name = "invoke_full"
463+
ignore = true
426464

427465
[[object]]
428466
name = "GLib.MainLoop"

src/auto/date_time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl DateTime {
3131
}
3232

3333
#[cfg(any(feature = "v2_56", feature = "dox"))]
34-
pub fn new_from_iso8601<'a, P: Into<Option<&'a TimeZone>>>(text: &str, default_tz: P) -> DateTime {
34+
pub fn new_from_iso8601<'a, P: Into<Option<&'a TimeZone>>>(text: &str, default_tz: P) -> Option<DateTime> {
3535
let default_tz = default_tz.into();
3636
unsafe {
3737
from_glib_full(ffi::g_date_time_new_from_iso8601(text.to_glib_none().0, default_tz.to_glib_none().0))

src/auto/functions.rs

Lines changed: 45 additions & 87 deletions
Large diffs are not rendered by default.

src/auto/main_context.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,18 @@ impl MainContext {
4343
}
4444
}
4545

46-
//pub fn find_source_by_funcs_user_data<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, funcs: /*Ignored*/&mut SourceFuncs, user_data: P) -> Option<Source> {
46+
//pub fn find_source_by_funcs_user_data(&self, funcs: /*Ignored*/&mut SourceFuncs, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> Option<Source> {
4747
// unsafe { TODO: call ffi::g_main_context_find_source_by_funcs_user_data() }
4848
//}
4949

50-
//pub fn find_source_by_user_data<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, user_data: P) -> Option<Source> {
50+
//pub fn find_source_by_user_data(&self, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> Option<Source> {
5151
// unsafe { TODO: call ffi::g_main_context_find_source_by_user_data() }
5252
//}
5353

54-
//pub fn get_poll_func(&self) -> /*Unknown conversion*//*Unimplemented*/PollFunc {
54+
//pub fn get_poll_func(&self) -> /*Unimplemented*/Fn(/*Ignored*/PollFD, u32, i32) -> i32 {
5555
// unsafe { TODO: call ffi::g_main_context_get_poll_func() }
5656
//}
5757

58-
//pub fn invoke<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&self, function: /*Unknown conversion*//*Unimplemented*/SourceFunc, data: P) {
59-
// unsafe { TODO: call ffi::g_main_context_invoke() }
60-
//}
61-
62-
//pub fn invoke_full<'a, P: Into<Option</*Unimplemented*/Fundamental: Pointer>>, Q: Into<Option<&'a /*Unimplemented*/DestroyNotify>>>(&self, priority: i32, function: /*Unknown conversion*//*Unimplemented*/SourceFunc, data: P, notify: Q) {
63-
// unsafe { TODO: call ffi::g_main_context_invoke_full() }
64-
//}
65-
6658
pub fn is_owner(&self) -> bool {
6759
unsafe {
6860
from_glib(ffi::g_main_context_is_owner(self.to_glib_none().0))
@@ -107,7 +99,7 @@ impl MainContext {
10799
// unsafe { TODO: call ffi::g_main_context_remove_poll() }
108100
//}
109101

110-
//pub fn set_poll_func(&self, func: /*Unknown conversion*//*Unimplemented*/PollFunc) {
102+
//pub fn set_poll_func(&self, func: /*Unimplemented*/Fn(/*Ignored*/PollFD, u32, i32) -> i32) {
111103
// unsafe { TODO: call ffi::g_main_context_set_poll_func() }
112104
//}
113105

src/auto/source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ impl Source {
135135
}
136136
}
137137

138-
//pub fn remove_by_funcs_user_data<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(funcs: /*Ignored*/&mut SourceFuncs, user_data: P) -> bool {
138+
//pub fn remove_by_funcs_user_data(funcs: /*Ignored*/&mut SourceFuncs, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
139139
// unsafe { TODO: call ffi::g_source_remove_by_funcs_user_data() }
140140
//}
141141

142-
//pub fn remove_by_user_data<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(user_data: P) -> bool {
142+
//pub fn remove_by_user_data(user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
143143
// unsafe { TODO: call ffi::g_source_remove_by_user_data() }
144144
//}
145145
}

src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 3766446)
1+
Generated by gir (https://github.com/gtk-rs/gir @ f5d3eab)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 62f3bf0)

src/gobject/auto/binding.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ impl Binding {
5959
unsafe impl Send for Binding {}
6060
unsafe impl Sync for Binding {}
6161

62-
pub const NONE_BINDING: Option<&Binding> = None;
63-
6462
impl fmt::Display for Binding {
6563
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6664
write!(f, "Binding")

src/gobject/auto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// DO NOT EDIT
44

55
mod binding;
6-
pub use self::binding::{Binding, BindingClass, NONE_BINDING};
6+
pub use self::binding::{Binding, BindingClass};
77

88
mod flags;
99
pub use self::flags::BindingFlags;

0 commit comments

Comments
 (0)