From 7ca26c18f70874fdff7300f7c7677a182d074eef Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Fri, 2 Mar 2018 22:59:18 +0300 Subject: [PATCH 1/2] Revert "Remove callback_guard" This reverts commit 36dff74509f9f523153b30c9ca6a884bcfd9c316. --- src/assistant.rs | 2 + src/auto/about_dialog.rs | 18 ++++- src/auto/accel_group.rs | 5 +- src/auto/action_bar.rs | 2 +- src/auto/actionable.rs | 3 +- src/auto/adjustment.rs | 10 ++- src/auto/alignment.rs | 10 ++- src/auto/app_chooser_button.rs | 6 +- src/auto/app_chooser_dialog.rs | 4 +- src/auto/app_chooser_widget.rs | 11 ++- src/auto/application.rs | 8 ++- src/auto/application_window.rs | 3 +- src/auto/arrow.rs | 4 +- src/auto/aspect_frame.rs | 6 +- src/auto/assistant.rs | 8 ++- src/auto/bin.rs | 2 +- src/auto/box_.rs | 5 +- src/auto/buildable.rs | 2 +- src/auto/builder.rs | 3 +- src/auto/button.rs | 13 +++- src/auto/button_box.rs | 3 +- src/auto/calendar.rs | 19 ++++- src/auto/cell_area.rs | 9 ++- src/auto/cell_area_box.rs | 3 +- src/auto/cell_area_context.rs | 7 +- src/auto/cell_editable.rs | 5 +- src/auto/cell_layout.rs | 2 +- src/auto/cell_renderer.rs | 19 ++++- src/auto/cell_renderer_accel.rs | 8 ++- src/auto/cell_renderer_combo.rs | 6 +- src/auto/cell_renderer_pixbuf.rs | 11 ++- src/auto/cell_renderer_progress.rs | 8 ++- src/auto/cell_renderer_spin.rs | 5 +- src/auto/cell_renderer_spinner.rs | 5 +- src/auto/cell_renderer_text.rs | 47 ++++++++++++- src/auto/cell_renderer_toggle.rs | 8 ++- src/auto/cell_view.rs | 10 ++- src/auto/check_button.rs | 2 +- src/auto/check_menu_item.rs | 6 +- src/auto/clipboard.rs | 2 +- src/auto/color_button.rs | 8 ++- src/auto/color_chooser.rs | 5 +- src/auto/color_chooser_dialog.rs | 3 +- src/auto/color_chooser_widget.rs | 3 +- src/auto/combo_box.rs | 23 +++++- src/auto/combo_box_text.rs | 2 +- src/auto/container.rs | 9 ++- src/auto/css_provider.rs | 3 +- src/auto/css_section.rs | 2 +- src/auto/dialog.rs | 5 +- src/auto/drawing_area.rs | 2 +- src/auto/editable.rs | 2 +- src/auto/entry.rs | 63 ++++++++++++++++- src/auto/entry_completion.rs | 16 ++++- src/auto/enums.rs | 2 +- src/auto/event_box.rs | 4 +- src/auto/event_controller.rs | 4 +- src/auto/expander.rs | 11 ++- src/auto/file_chooser.rs | 18 ++++- src/auto/file_chooser_button.rs | 6 +- src/auto/file_chooser_dialog.rs | 2 +- src/auto/file_chooser_native.rs | 4 +- src/auto/file_chooser_widget.rs | 16 ++++- src/auto/file_filter.rs | 2 +- src/auto/fixed.rs | 2 +- src/auto/flags.rs | 2 +- src/auto/flow_box.rs | 16 ++++- src/auto/flow_box_child.rs | 3 +- src/auto/font_button.rs | 9 ++- src/auto/font_chooser.rs | 7 +- src/auto/font_chooser_dialog.rs | 2 +- src/auto/font_chooser_widget.rs | 2 +- src/auto/frame.rs | 7 +- src/auto/functions.rs | 2 +- src/auto/gesture.rs | 4 +- src/auto/gesture_drag.rs | 5 +- src/auto/gesture_long_press.rs | 5 +- src/auto/gesture_multi_press.rs | 5 +- src/auto/gesture_pan.rs | 4 +- src/auto/gesture_rotate.rs | 3 +- src/auto/gesture_single.rs | 5 +- src/auto/gesture_swipe.rs | 3 +- src/auto/gesture_zoom.rs | 3 +- src/auto/gl_area.rs | 11 ++- src/auto/grid.rs | 7 +- src/auto/header_bar.rs | 10 ++- src/auto/i_m_context.rs | 10 ++- src/auto/i_m_multicontext.rs | 2 +- src/auto/icon_factory.rs | 2 +- src/auto/icon_info.rs | 35 +++++----- src/auto/icon_set.rs | 2 +- src/auto/icon_source.rs | 2 +- src/auto/icon_theme.rs | 3 +- src/auto/icon_view.rs | 27 +++++++- src/auto/image.rs | 13 +++- src/auto/image_menu_item.rs | 6 +- src/auto/info_bar.rs | 6 +- src/auto/invisible.rs | 3 +- src/auto/label.rs | 29 +++++++- src/auto/layout.rs | 4 +- src/auto/level_bar.rs | 8 ++- src/auto/link_button.rs | 5 +- src/auto/list_box.rs | 12 +++- src/auto/list_box_row.rs | 5 +- src/auto/list_store.rs | 2 +- src/auto/lock_button.rs | 8 ++- src/auto/menu.rs | 15 +++- src/auto/menu_bar.rs | 4 +- src/auto/menu_button.rs | 8 ++- src/auto/menu_item.rs | 12 +++- src/auto/menu_shell.rs | 11 ++- src/auto/menu_tool_button.rs | 4 +- src/auto/message_dialog.rs | 10 ++- src/auto/misc.rs | 6 +- src/auto/mod.rs | 2 +- src/auto/model_button.rs | 10 ++- src/auto/mount_operation.rs | 5 +- src/auto/native_dialog.rs | 7 +- src/auto/notebook.rs | 19 ++++- src/auto/offscreen_window.rs | 2 +- src/auto/orientable.rs | 3 +- src/auto/overlay.rs | 2 +- src/auto/pad_controller.rs | 4 +- src/auto/page_setup.rs | 2 +- src/auto/paned.rs | 13 +++- src/auto/paper_size.rs | 2 +- src/auto/places_sidebar.rs | 23 +++++- src/auto/plug.rs | 5 +- src/auto/popover.rs | 9 ++- src/auto/popover_menu.rs | 3 +- src/auto/print_context.rs | 2 +- src/auto/print_operation.rs | 31 ++++++++- src/auto/print_operation_preview.rs | 4 +- src/auto/print_settings.rs | 2 +- src/auto/progress_bar.rs | 8 ++- src/auto/radio_button.rs | 3 +- src/auto/radio_menu_item.rs | 3 +- src/auto/radio_tool_button.rs | 2 +- src/auto/range.rs | 14 +++- src/auto/recent_chooser.rs | 14 +++- src/auto/recent_chooser_dialog.rs | 2 +- src/auto/recent_chooser_widget.rs | 2 +- src/auto/recent_filter.rs | 2 +- src/auto/recent_info.rs | 2 +- src/auto/recent_manager.rs | 5 +- src/auto/revealer.rs | 6 +- src/auto/scale.rs | 7 +- src/auto/scale_button.rs | 9 ++- src/auto/scrollable.rs | 6 +- src/auto/scrollbar.rs | 2 +- src/auto/scrolled_window.rs | 21 +++++- src/auto/search_bar.rs | 4 +- src/auto/search_entry.rs | 6 +- src/auto/selection_data.rs | 2 +- src/auto/separator.rs | 2 +- src/auto/separator_menu_item.rs | 2 +- src/auto/separator_tool_item.rs | 3 +- src/auto/settings.rs | 84 +++++++++++++++++++++- src/auto/shortcuts_window.rs | 6 +- src/auto/size_group.rs | 4 +- src/auto/socket.rs | 4 +- src/auto/spin_button.rs | 10 ++- src/auto/spinner.rs | 3 +- src/auto/stack.rs | 11 ++- src/auto/stack_sidebar.rs | 3 +- src/auto/stack_switcher.rs | 4 +- src/auto/status_icon.rs | 24 ++++++- src/auto/statusbar.rs | 4 +- src/auto/style_context.rs | 11 ++- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 14 ++-- src/auto/switch.rs | 6 +- src/auto/symbolic_color.rs | 2 +- src/auto/target_list.rs | 2 +- src/auto/text_attributes.rs | 2 +- src/auto/text_buffer.rs | 20 +++++- src/auto/text_child_anchor.rs | 2 +- src/auto/text_iter.rs | 2 +- src/auto/text_mark.rs | 4 +- src/auto/text_tag.rs | 72 ++++++++++++++++++- src/auto/text_tag_table.rs | 5 +- src/auto/text_view.rs | 39 ++++++++++- src/auto/toggle_button.rs | 6 +- src/auto/toggle_tool_button.rs | 4 +- src/auto/tool_button.rs | 9 ++- src/auto/tool_item.rs | 7 +- src/auto/tool_item_group.rs | 7 +- src/auto/tool_palette.rs | 5 +- src/auto/tool_shell.rs | 2 +- src/auto/toolbar.rs | 10 ++- src/auto/tooltip.rs | 2 +- src/auto/tree_iter.rs | 2 +- src/auto/tree_model.rs | 6 +- src/auto/tree_model_filter.rs | 3 +- src/auto/tree_path.rs | 2 +- src/auto/tree_row_reference.rs | 2 +- src/auto/tree_selection.rs | 4 +- src/auto/tree_sortable.rs | 3 +- src/auto/tree_store.rs | 2 +- src/auto/tree_view.rs | 36 +++++++++- src/auto/tree_view_column.rs | 22 +++++- src/auto/viewport.rs | 3 +- src/auto/volume_button.rs | 3 +- src/auto/widget.rs | 104 +++++++++++++++++++++++++++- src/auto/window.rs | 40 ++++++++++- src/auto/window_group.rs | 2 +- src/clipboard.rs | 2 + src/rt.rs | 9 +++ src/signal.rs | 10 +++ src/switch.rs | 1 + src/text_buffer.rs | 1 + src/tree_model_filter.rs | 2 + src/tree_sortable.rs | 2 + src/widget.rs | 3 + 214 files changed, 1601 insertions(+), 228 deletions(-) diff --git a/src/assistant.rs b/src/assistant.rs index 49034f03d6..0485113665 100644 --- a/src/assistant.rs +++ b/src/assistant.rs @@ -21,10 +21,12 @@ impl> AssistantExtManual for O { } unsafe extern "C" fn forward_page_trampoline(current_page: i32, f: glib_ffi::gpointer) -> i32 { + callback_guard!(); let f: &&(Fn(i32) -> i32 + 'static) = transmute(f); f(current_page) } unsafe extern "C" fn destroy_closure(ptr: glib_ffi::gpointer) { + callback_guard!(); Box_:: i32 + 'static>>::from_raw(ptr as *mut _); } diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index a96555925e..728504debb 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -481,96 +481,112 @@ impl + IsA> AboutDialogExt for O { unsafe extern "C" fn activate_link_trampoline

(this: *mut ffi::GtkAboutDialog, uri: *mut libc::c_char, f: glib_ffi::gpointer) -> glib_ffi::gboolean where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &str) -> Inhibit + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(uri)).to_glib() } unsafe extern "C" fn notify_artists_trampoline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 2e1b5cfcfe..fd3dbc4f2d 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -158,18 +158,21 @@ impl + IsA> AccelGroupExt for O { unsafe extern "C" fn accel_activate_trampoline

(this: *mut ffi::GtkAccelGroup, acceleratable: *mut gobject_ffi::GObject, keyval: libc::c_uint, modifier: gdk_ffi::GdkModifierType, f: glib_ffi::gpointer) -> glib_ffi::gboolean where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &glib::Object, u32, gdk::ModifierType) -> bool + 'static) = transmute(f); f(&AccelGroup::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(acceleratable), keyval, from_glib(modifier)).to_glib() } unsafe extern "C" fn notify_is_locked_trampoline

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

(this: *mut ffi::GtkAccelGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AccelGroup::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 42ff758b13..b041fa7bce 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index b4dba5fa0b..703d0e90e2 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -90,6 +90,7 @@ impl + IsA> ActionableExt for O { unsafe extern "C" fn notify_action_name_trampoline

(this: *mut ffi::GtkActionable, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Actionable::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index bda8932c30..6d50d4faac 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -257,48 +257,56 @@ impl + IsA> AdjustmentExt for O { unsafe extern "C" fn changed_trampoline

(this: *mut ffi::GtkAdjustment, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn value_changed_trampoline

(this: *mut ffi::GtkAdjustment, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_lower_trampoline

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

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

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

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

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

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 1feb1b5421..52854469a4 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -326,48 +326,56 @@ impl + IsA> AlignmentExt for O { unsafe extern "C" fn notify_bottom_padding_trampoline

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

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

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

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

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

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

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

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index 4edc522817..da5e0e09a3 100644 --- a/src/auto/app_chooser_button.rs +++ b/src/auto/app_chooser_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -161,24 +161,28 @@ impl + IsA> AppChooserButtonExt f unsafe extern "C" fn custom_item_activated_trampoline

(this: *mut ffi::GtkAppChooserButton, item_name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &str) + 'static) = transmute(f); f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(item_name)) } unsafe extern "C" fn notify_heading_trampoline

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

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

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index f871ca1224..2b6c839f7d 100644 --- a/src/auto/app_chooser_dialog.rs +++ b/src/auto/app_chooser_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -115,12 +115,14 @@ impl + IsA> AppChooserDialogExt f unsafe extern "C" fn notify_gfile_trampoline

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

(this: *mut ffi::GtkAppChooserDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserDialog::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index d6808dea2a..6a6985b7b1 100644 --- a/src/auto/app_chooser_widget.rs +++ b/src/auto/app_chooser_widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -234,54 +234,63 @@ impl + IsA> AppChooserWidgetExt f unsafe extern "C" fn application_activated_trampoline

(this: *mut ffi::GtkAppChooserWidget, application: *mut gio_ffi::GAppInfo, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &gio::AppInfo) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(application)) } unsafe extern "C" fn application_selected_trampoline

(this: *mut ffi::GtkAppChooserWidget, application: *mut gio_ffi::GAppInfo, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &gio::AppInfo) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(application)) } unsafe extern "C" fn populate_popup_trampoline

(this: *mut ffi::GtkAppChooserWidget, menu: *mut ffi::GtkMenu, application: *mut gio_ffi::GAppInfo, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &Menu, &gio::AppInfo) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(menu), &from_glib_borrow(application)) } unsafe extern "C" fn notify_default_text_trampoline

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

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

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

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

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

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/application.rs b/src/auto/application.rs index c0934fee2c..85b648b3c2 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -318,36 +318,42 @@ impl + IsA> GtkApplicationExt for O { unsafe extern "C" fn window_added_trampoline

(this: *mut ffi::GtkApplication, window: *mut ffi::GtkWindow, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &Window) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(window)) } unsafe extern "C" fn window_removed_trampoline

(this: *mut ffi::GtkApplication, window: *mut ffi::GtkWindow, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &Window) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(window)) } unsafe extern "C" fn notify_active_window_trampoline

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

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

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

(this: *mut ffi::GtkApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index be1f8b9a99..a3066d65a6 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -115,6 +115,7 @@ impl + IsA> ApplicationWindowExt unsafe extern "C" fn notify_show_menubar_trampoline

(this: *mut ffi::GtkApplicationWindow, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&ApplicationWindow::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 068ad78879..79fa4ad0f7 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -112,12 +112,14 @@ impl + IsA> ArrowExt for O { unsafe extern "C" fn notify_arrow_type_trampoline

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

(this: *mut ffi::GtkArrow, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Arrow::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 52212c289b..6ebcf12d8e 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -168,24 +168,28 @@ impl + IsA> AspectFrameExt for O { unsafe extern "C" fn notify_obey_child_trampoline

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

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

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

(this: *mut ffi::GtkAspectFrame, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AspectFrame::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 56d9c5380c..d4f28459d1 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -392,30 +392,35 @@ impl + IsA + IsA + glib::obje unsafe extern "C" fn apply_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn cancel_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn close_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn escape_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn prepare_trampoline

(this: *mut ffi::GtkAssistant, page: *mut ffi::GtkWidget, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P, &Widget) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(page)) } @@ -423,6 +428,7 @@ where P: IsA { #[cfg(any(feature = "v3_12", feature = "dox"))] unsafe extern "C" fn notify_use_header_bar_trampoline

(this: *mut ffi::GtkAssistant, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/bin.rs b/src/auto/bin.rs index c629ddb000..4190fc7c17 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/box_.rs b/src/auto/box_.rs index be00264fd1..1d64c5e3f9 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -307,18 +307,21 @@ impl + IsA + IsA> BoxExt for O { #[cfg(any(feature = "v3_10", feature = "dox"))] unsafe extern "C" fn notify_baseline_position_trampoline

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

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

(this: *mut ffi::GtkBox, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Box::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 228a8927f9..6ac1f7a757 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 60025c5757..891fd276cd 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -246,6 +246,7 @@ impl + IsA> BuilderExt for O { unsafe extern "C" fn notify_translation_domain_trampoline

(this: *mut ffi::GtkBuilder, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { + callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Builder::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/button.rs b/src/auto/button.rs index 1cb7ef9c63..eaf51f85f2 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ fbb95f4) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -433,12 +433,14 @@ impl + IsA + glib::object::ObjectExt> Butto unsafe extern "C" fn activate_trampoline

(this: *mut ffi::GtkButton, f: glib_ffi::gpointer) where P: IsA