Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Commit 7b9bf16

Browse files
committed
Regen
1 parent a4123ba commit 7b9bf16

File tree

120 files changed

+1025
-1080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1025
-1080
lines changed

gir

Submodule gir updated 67 files

src/auto/console_message.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use ffi;

src/auto/context_menu.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use ContextMenuItem;

src/auto/context_menu_item.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use ContextMenu;
@@ -24,6 +25,7 @@ glib_wrapper! {
2425
}
2526

2627
impl ContextMenuItem {
28+
//#[cfg_attr(feature = "v2_18", deprecated)]
2729
//pub fn new<P: IsA</*Ignored*/gtk::Action>>(action: &P) -> ContextMenuItem {
2830
// unsafe { TODO: call ffi::webkit_context_menu_item_new() }
2931
//}
@@ -68,6 +70,7 @@ impl ContextMenuItem {
6870
}
6971

7072
pub trait ContextMenuItemExt {
73+
//#[cfg_attr(feature = "v2_18", deprecated)]
7174
//fn get_action(&self) -> /*Ignored*/Option<gtk::Action>;
7275

7376
#[cfg(any(feature = "v2_18", feature = "dox"))]

src/auto/dom_attr.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMElement;
@@ -146,49 +147,42 @@ impl<O: IsA<DOMAttr> + IsA<glib::object::Object>> DOMAttrExt for O {
146147

147148
unsafe extern "C" fn notify_local_name_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
148149
where P: IsA<DOMAttr> {
149-
callback_guard!();
150150
let f: &&(Fn(&P) + 'static) = transmute(f);
151151
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
152152
}
153153

154154
unsafe extern "C" fn notify_name_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
155155
where P: IsA<DOMAttr> {
156-
callback_guard!();
157156
let f: &&(Fn(&P) + 'static) = transmute(f);
158157
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
159158
}
160159

161160
unsafe extern "C" fn notify_namespace_uri_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
162161
where P: IsA<DOMAttr> {
163-
callback_guard!();
164162
let f: &&(Fn(&P) + 'static) = transmute(f);
165163
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
166164
}
167165

168166
unsafe extern "C" fn notify_owner_element_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
169167
where P: IsA<DOMAttr> {
170-
callback_guard!();
171168
let f: &&(Fn(&P) + 'static) = transmute(f);
172169
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
173170
}
174171

175172
unsafe extern "C" fn notify_prefix_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
176173
where P: IsA<DOMAttr> {
177-
callback_guard!();
178174
let f: &&(Fn(&P) + 'static) = transmute(f);
179175
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
180176
}
181177

182178
unsafe extern "C" fn notify_specified_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
183179
where P: IsA<DOMAttr> {
184-
callback_guard!();
185180
let f: &&(Fn(&P) + 'static) = transmute(f);
186181
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
187182
}
188183

189184
unsafe extern "C" fn notify_value_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
190185
where P: IsA<DOMAttr> {
191-
callback_guard!();
192186
let f: &&(Fn(&P) + 'static) = transmute(f);
193187
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
194188
}

src/auto/dom_blob.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMObject;
@@ -48,7 +49,6 @@ impl<O: IsA<DOMBlob> + IsA<glib::object::Object>> DOMBlobExt for O {
4849

4950
unsafe extern "C" fn notify_size_trampoline<P>(this: *mut ffi::WebKitDOMBlob, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
5051
where P: IsA<DOMBlob> {
51-
callback_guard!();
5252
let f: &&(Fn(&P) + 'static) = transmute(f);
5353
f(&DOMBlob::from_glib_borrow(this).downcast_unchecked())
5454
}

src/auto/dom_cdata_section.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMCharacterData;

src/auto/dom_character_data.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMEventTarget;
@@ -130,14 +131,12 @@ impl<O: IsA<DOMCharacterData> + IsA<glib::object::Object>> DOMCharacterDataExt f
130131

131132
unsafe extern "C" fn notify_data_trampoline<P>(this: *mut ffi::WebKitDOMCharacterData, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
132133
where P: IsA<DOMCharacterData> {
133-
callback_guard!();
134134
let f: &&(Fn(&P) + 'static) = transmute(f);
135135
f(&DOMCharacterData::from_glib_borrow(this).downcast_unchecked())
136136
}
137137

138138
unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCharacterData, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
139139
where P: IsA<DOMCharacterData> {
140-
callback_guard!();
141140
let f: &&(Fn(&P) + 'static) = transmute(f);
142141
f(&DOMCharacterData::from_glib_borrow(this).downcast_unchecked())
143142
}

src/auto/dom_client_rect.rs

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMObject;
@@ -115,53 +116,47 @@ impl<O: IsA<DOMClientRect> + IsA<glib::object::Object>> DOMClientRectExt for O {
115116

116117
fn get_property_bottom(&self) -> f32 {
117118
unsafe {
118-
let mut value = Value::uninitialized();
119-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
119+
let mut value = Value::from_type(<f32 as StaticType>::static_type());
120120
gobject_ffi::g_object_get_property(self.to_glib_none().0, "bottom".to_glib_none().0, value.to_glib_none_mut().0);
121121
value.get().unwrap()
122122
}
123123
}
124124

125125
fn get_property_height(&self) -> f32 {
126126
unsafe {
127-
let mut value = Value::uninitialized();
128-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
127+
let mut value = Value::from_type(<f32 as StaticType>::static_type());
129128
gobject_ffi::g_object_get_property(self.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0);
130129
value.get().unwrap()
131130
}
132131
}
133132

134133
fn get_property_left(&self) -> f32 {
135134
unsafe {
136-
let mut value = Value::uninitialized();
137-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
135+
let mut value = Value::from_type(<f32 as StaticType>::static_type());
138136
gobject_ffi::g_object_get_property(self.to_glib_none().0, "left".to_glib_none().0, value.to_glib_none_mut().0);
139137
value.get().unwrap()
140138
}
141139
}
142140

143141
fn get_property_right(&self) -> f32 {
144142
unsafe {
145-
let mut value = Value::uninitialized();
146-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
143+
let mut value = Value::from_type(<f32 as StaticType>::static_type());
147144
gobject_ffi::g_object_get_property(self.to_glib_none().0, "right".to_glib_none().0, value.to_glib_none_mut().0);
148145
value.get().unwrap()
149146
}
150147
}
151148

152149
fn get_property_top(&self) -> f32 {
153150
unsafe {
154-
let mut value = Value::uninitialized();
155-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
151+
let mut value = Value::from_type(<f32 as StaticType>::static_type());
156152
gobject_ffi::g_object_get_property(self.to_glib_none().0, "top".to_glib_none().0, value.to_glib_none_mut().0);
157153
value.get().unwrap()
158154
}
159155
}
160156

161157
fn get_property_width(&self) -> f32 {
162158
unsafe {
163-
let mut value = Value::uninitialized();
164-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
159+
let mut value = Value::from_type(<f32 as StaticType>::static_type());
165160
gobject_ffi::g_object_get_property(self.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0);
166161
value.get().unwrap()
167162
}
@@ -218,42 +213,36 @@ impl<O: IsA<DOMClientRect> + IsA<glib::object::Object>> DOMClientRectExt for O {
218213

219214
unsafe extern "C" fn notify_bottom_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
220215
where P: IsA<DOMClientRect> {
221-
callback_guard!();
222216
let f: &&(Fn(&P) + 'static) = transmute(f);
223217
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
224218
}
225219

226220
unsafe extern "C" fn notify_height_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
227221
where P: IsA<DOMClientRect> {
228-
callback_guard!();
229222
let f: &&(Fn(&P) + 'static) = transmute(f);
230223
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
231224
}
232225

233226
unsafe extern "C" fn notify_left_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
234227
where P: IsA<DOMClientRect> {
235-
callback_guard!();
236228
let f: &&(Fn(&P) + 'static) = transmute(f);
237229
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
238230
}
239231

240232
unsafe extern "C" fn notify_right_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
241233
where P: IsA<DOMClientRect> {
242-
callback_guard!();
243234
let f: &&(Fn(&P) + 'static) = transmute(f);
244235
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
245236
}
246237

247238
unsafe extern "C" fn notify_top_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
248239
where P: IsA<DOMClientRect> {
249-
callback_guard!();
250240
let f: &&(Fn(&P) + 'static) = transmute(f);
251241
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
252242
}
253243

254244
unsafe extern "C" fn notify_width_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
255245
where P: IsA<DOMClientRect> {
256-
callback_guard!();
257246
let f: &&(Fn(&P) + 'static) = transmute(f);
258247
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
259248
}

src/auto/dom_client_rect_list.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
#[cfg(any(feature = "v2_18", feature = "dox"))]
@@ -58,8 +59,7 @@ impl<O: IsA<DOMClientRectList> + IsA<glib::object::Object>> DOMClientRectListExt
5859

5960
fn get_property_length(&self) -> libc::c_ulong {
6061
unsafe {
61-
let mut value = Value::uninitialized();
62-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <libc::c_ulong as StaticType>::static_type().to_glib());
62+
let mut value = Value::from_type(<libc::c_ulong as StaticType>::static_type());
6363
gobject_ffi::g_object_get_property(self.to_glib_none().0, "length".to_glib_none().0, value.to_glib_none_mut().0);
6464
value.get().unwrap()
6565
}
@@ -76,7 +76,6 @@ impl<O: IsA<DOMClientRectList> + IsA<glib::object::Object>> DOMClientRectListExt
7676

7777
unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMClientRectList, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
7878
where P: IsA<DOMClientRectList> {
79-
callback_guard!();
8079
let f: &&(Fn(&P) + 'static) = transmute(f);
8180
f(&DOMClientRectList::from_glib_borrow(this).downcast_unchecked())
8281
}

src/auto/dom_comment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMCharacterData;

src/auto/dom_css_rule.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMCSSStyleSheet;
@@ -86,8 +87,7 @@ impl<O: IsA<DOMCSSRule> + IsA<glib::object::Object>> DOMCSSRuleExt for O {
8687

8788
fn get_property_type(&self) -> u32 {
8889
unsafe {
89-
let mut value = Value::uninitialized();
90-
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u32 as StaticType>::static_type().to_glib());
90+
let mut value = Value::from_type(<u32 as StaticType>::static_type());
9191
gobject_ffi::g_object_get_property(self.to_glib_none().0, "type".to_glib_none().0, value.to_glib_none_mut().0);
9292
value.get().unwrap()
9393
}
@@ -128,28 +128,24 @@ impl<O: IsA<DOMCSSRule> + IsA<glib::object::Object>> DOMCSSRuleExt for O {
128128

129129
unsafe extern "C" fn notify_css_text_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
130130
where P: IsA<DOMCSSRule> {
131-
callback_guard!();
132131
let f: &&(Fn(&P) + 'static) = transmute(f);
133132
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
134133
}
135134

136135
unsafe extern "C" fn notify_parent_rule_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
137136
where P: IsA<DOMCSSRule> {
138-
callback_guard!();
139137
let f: &&(Fn(&P) + 'static) = transmute(f);
140138
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
141139
}
142140

143141
unsafe extern "C" fn notify_parent_style_sheet_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
144142
where P: IsA<DOMCSSRule> {
145-
callback_guard!();
146143
let f: &&(Fn(&P) + 'static) = transmute(f);
147144
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
148145
}
149146

150147
unsafe extern "C" fn notify_type_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
151148
where P: IsA<DOMCSSRule> {
152-
callback_guard!();
153149
let f: &&(Fn(&P) + 'static) = transmute(f);
154150
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
155151
}

src/auto/dom_css_rule_list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMCSSRule;
@@ -58,7 +59,6 @@ impl<O: IsA<DOMCSSRuleList> + IsA<glib::object::Object>> DOMCSSRuleListExt for O
5859

5960
unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCSSRuleList, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
6061
where P: IsA<DOMCSSRuleList> {
61-
callback_guard!();
6262
let f: &&(Fn(&P) + 'static) = transmute(f);
6363
f(&DOMCSSRuleList::from_glib_borrow(this).downcast_unchecked())
6464
}

src/auto/dom_css_style_declaration.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// This file was generated by gir (d50d839) from gir-files (469db10)
1+
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
2+
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
23
// DO NOT EDIT
34

45
use DOMCSSRule;
@@ -157,21 +158,18 @@ impl<O: IsA<DOMCSSStyleDeclaration> + IsA<glib::object::Object>> DOMCSSStyleDecl
157158

158159
unsafe extern "C" fn notify_css_text_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleDeclaration, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
159160
where P: IsA<DOMCSSStyleDeclaration> {
160-
callback_guard!();
161161
let f: &&(Fn(&P) + 'static) = transmute(f);
162162
f(&DOMCSSStyleDeclaration::from_glib_borrow(this).downcast_unchecked())
163163
}
164164

165165
unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleDeclaration, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
166166
where P: IsA<DOMCSSStyleDeclaration> {
167-
callback_guard!();
168167
let f: &&(Fn(&P) + 'static) = transmute(f);
169168
f(&DOMCSSStyleDeclaration::from_glib_borrow(this).downcast_unchecked())
170169
}
171170

172171
unsafe extern "C" fn notify_parent_rule_trampoline<P>(this: *mut ffi::WebKitDOMCSSStyleDeclaration, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
173172
where P: IsA<DOMCSSStyleDeclaration> {
174-
callback_guard!();
175173
let f: &&(Fn(&P) + 'static) = transmute(f);
176174
f(&DOMCSSStyleDeclaration::from_glib_borrow(this).downcast_unchecked())
177175
}

0 commit comments

Comments
 (0)