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

Regen #28

Merged
merged 1 commit into from
Feb 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
name = "webkit2gtk-webextension"
version = "0.4.0"
authors = ["The Gtk-rs Project Developers"]

categories = ["api-bindings", "gui"]
description = "Rust bindings for the GTK+ 3 library"
repository = "https://github.com/gtk-rs/webkit2gtk-webextension-rs"
license = "MIT"
homepage = "http://gtk-rs.org/"
documentation = "http://gtk-rs.org/docs/gtk/"

keywords = ["webkit", "gtk", "gtk-rs", "GUI"]
exclude = [
"gir-files/*",
]

[badges]
travis-ci = { repository = "gtk-rs/webkit2gtk-webextension-rs" }
Expand Down
2 changes: 1 addition & 1 deletion gir
Submodule gir updated 67 files
+253 −69 Cargo.lock
+4 −8 Cargo.toml
+21 −6 README.md
+1 −1 build.rs
+19 −20 src/analysis/bounds.rs
+2 −2 src/analysis/ffi_type.rs
+4 −1 src/analysis/function_parameters.rs
+25 −17 src/analysis/functions.rs
+59 −31 src/analysis/imports.rs
+3 −3 src/analysis/mod.rs
+0 −11 src/analysis/namespaces.rs
+4 −12 src/analysis/object.rs
+1 −1 src/analysis/out_parameters.rs
+7 −5 src/analysis/properties.rs
+6 −6 src/analysis/record.rs
+8 −2 src/analysis/record_type.rs
+10 −11 src/analysis/ref_mode.rs
+11 −7 src/analysis/rust_type.rs
+32 −6 src/analysis/signatures.rs
+30 −8 src/analysis/symbols.rs
+1 −1 src/analysis/trampoline_parameters.rs
+232 −0 src/analysis/types.rs
+2 −3 src/chunk/chunk.rs
+12 −0 src/chunk/parameter_ffi_call_out.rs
+4 −4 src/codegen/doc/format.rs
+46 −13 src/codegen/doc/mod.rs
+35 −34 src/codegen/enums.rs
+23 −28 src/codegen/flags.rs
+6 −1 src/codegen/function.rs
+123 −117 src/codegen/function_body_chunk.rs
+71 −2 src/codegen/general.rs
+1 −0 src/codegen/mod.rs
+4 −1 src/codegen/properties.rs
+1 −3 src/codegen/property_body.rs
+22 −1 src/codegen/record.rs
+9 −1 src/codegen/signal.rs
+139 −0 src/codegen/sys/fields.rs
+12 −18 src/codegen/sys/functions.rs
+130 −346 src/codegen/sys/lib_.rs
+3 −2 src/codegen/sys/mod.rs
+3 −8 src/codegen/sys/statics.rs
+0 −1 src/codegen/trampoline.rs
+1 −0 src/codegen/translate_to_glib.rs
+25 −12 src/config/config.rs
+0 −2 src/config/error.rs
+8 −1 src/config/gobjects.rs
+5 −0 src/config/members.rs
+5 −3 src/config/work_mode.rs
+7 −0 src/env.rs
+59 −18 src/library.rs
+105 −0 src/library_postprocessing.rs
+12 −2 src/main.rs
+4 −0 src/nameutil.rs
+661 −1,211 src/parser.rs
+31 −0 src/update_version.rs
+1 −1 src/writer/defines.rs
+2 −7 src/writer/to_code.rs
+426 −0 src/xmlparser.rs
+2 −2 tests/sys/atk-sys/Cargo.toml
+3 −2 tests/sys/gdk-pixbuf-sys/Cargo.toml
+5 −2 tests/sys/gdk-sys/Cargo.toml
+7 −2 tests/sys/gio-sys/Cargo.toml
+7 −2 tests/sys/glib-sys/Cargo.toml
+4 −2 tests/sys/gobject-sys/Cargo.toml
+6 −2 tests/sys/gtk-sys/Cargo.toml
+4 −2 tests/sys/pango-sys/Cargo.toml
+2 −2 tests/sys/secret-sys/Cargo.toml
2 changes: 1 addition & 1 deletion gir-files
3 changes: 2 additions & 1 deletion src/auto/console_message.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

use ffi;
Expand Down
3 changes: 2 additions & 1 deletion src/auto/context_menu.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

use ContextMenuItem;
Expand Down
5 changes: 4 additions & 1 deletion src/auto/context_menu_item.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

use ContextMenu;
Expand All @@ -24,6 +25,7 @@ glib_wrapper! {
}

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

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

#[cfg(any(feature = "v2_18", feature = "dox"))]
Expand Down
10 changes: 2 additions & 8 deletions src/auto/dom_attr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

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

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

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

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

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

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

unsafe extern "C" fn notify_value_trampoline<P>(this: *mut ffi::WebKitDOMAttr, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMAttr> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMAttr::from_glib_borrow(this).downcast_unchecked())
}
4 changes: 2 additions & 2 deletions src/auto/dom_blob.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

unsafe extern "C" fn notify_size_trampoline<P>(this: *mut ffi::WebKitDOMBlob, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMBlob> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMBlob::from_glib_borrow(this).downcast_unchecked())
}
3 changes: 2 additions & 1 deletion src/auto/dom_cdata_section.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

use DOMCharacterData;
Expand Down
5 changes: 2 additions & 3 deletions src/auto/dom_character_data.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

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

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCharacterData, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCharacterData> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCharacterData::from_glib_borrow(this).downcast_unchecked())
}
27 changes: 8 additions & 19 deletions src/auto/dom_client_rect.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

fn get_property_bottom(&self) -> f32 {
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
let mut value = Value::from_type(<f32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "bottom".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
}

fn get_property_height(&self) -> f32 {
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
let mut value = Value::from_type(<f32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
}

fn get_property_left(&self) -> f32 {
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
let mut value = Value::from_type(<f32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "left".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
}

fn get_property_right(&self) -> f32 {
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
let mut value = Value::from_type(<f32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "right".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
}

fn get_property_top(&self) -> f32 {
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <f32 as StaticType>::static_type().to_glib());
let mut value = Value::from_type(<f32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "top".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
}

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

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

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

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

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

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

unsafe extern "C" fn notify_width_trampoline<P>(this: *mut ffi::WebKitDOMClientRect, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRect> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRect::from_glib_borrow(this).downcast_unchecked())
}
7 changes: 3 additions & 4 deletions src/auto/dom_client_rect_list.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

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

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMClientRectList, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMClientRectList> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMClientRectList::from_glib_borrow(this).downcast_unchecked())
}
3 changes: 2 additions & 1 deletion src/auto/dom_comment.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

use DOMCharacterData;
Expand Down
10 changes: 3 additions & 7 deletions src/auto/dom_css_rule.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

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

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

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

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

unsafe extern "C" fn notify_type_trampoline<P>(this: *mut ffi::WebKitDOMCSSRule, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRule> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRule::from_glib_borrow(this).downcast_unchecked())
}
4 changes: 2 additions & 2 deletions src/auto/dom_css_rule_list.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

unsafe extern "C" fn notify_length_trampoline<P>(this: *mut ffi::WebKitDOMCSSRuleList, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<DOMCSSRuleList> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&DOMCSSRuleList::from_glib_borrow(this).downcast_unchecked())
}
6 changes: 2 additions & 4 deletions src/auto/dom_css_style_declaration.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// This file was generated by gir (d50d839) from gir-files (469db10)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb)
// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70)
// DO NOT EDIT

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

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

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

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