diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gir b/gir index eeb346bf25ed..e5ad53c3ad05 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit eeb346bf25ed72c30c46e02afb321a05c604b4c5 +Subproject commit e5ad53c3ad05f06c499704f2d39d2a04c4111eb4 diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gsk4/src/path.rs b/gsk4/src/path.rs index afd3967fb5e7..3ef77228797b 100644 --- a/gsk4/src/path.rs +++ b/gsk4/src/path.rs @@ -11,7 +11,7 @@ impl Path { flags: PathForeachFlags, func: P, ) -> glib::ControlFlow { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func< P: FnMut(&PathOperation, &graphene::Point, usize, f32) -> glib::ControlFlow, >( @@ -23,17 +23,17 @@ impl Path { ) -> glib::ffi::gboolean { let op = from_glib(op); let pts = from_glib_borrow(pts); - let callback: *mut P = user_data as *const _ as usize as *mut P; + let callback = user_data as *mut P; (*callback)(&op, &pts, n_pts, weight).into_glib() } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { from_glib(ffi::gsk_path_foreach( self.to_glib_none().0, flags.into_glib(), func, - super_callback0 as *const _ as usize as *mut _, + super_callback0 as *mut _ as *mut _, )) } } diff --git a/gsk4/src/render_node.rs b/gsk4/src/render_node.rs index f1dc870f64b9..4cca4816d9f9 100644 --- a/gsk4/src/render_node.rs +++ b/gsk4/src/render_node.rs @@ -36,7 +36,7 @@ impl RenderNode { error_func: P, ) -> Option { assert_initialized_main_thread!(); - let error_func_data: P = error_func; + let mut error_func_data: P = error_func; unsafe extern "C" fn error_func_func< P: FnMut(&ParseLocation, &ParseLocation, &glib::Error), >( @@ -48,16 +48,16 @@ impl RenderNode { let start = from_glib_borrow(start); let end = from_glib_borrow(end); let error = from_glib_borrow(error); - let callback: *mut P = user_data as *const _ as usize as *mut P; + let callback = user_data as *mut P; (*callback)(&start, &end, &error); } let error_func = Some(error_func_func::

as _); - let super_callback0: &P = &error_func_data; + let super_callback0: &mut P = &mut error_func_data; unsafe { from_glib_full(ffi::gsk_render_node_deserialize( bytes.to_glib_none().0, error_func, - super_callback0 as *const _ as usize as *mut _, + super_callback0 as *mut _ as *mut _, )) } } diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gtk4/src/auto/cell_area.rs b/gtk4/src/auto/cell_area.rs index bae1dbb7fe77..a1a9b6836822 100644 --- a/gtk4/src/auto/cell_area.rs +++ b/gtk4/src/auto/cell_area.rs @@ -226,7 +226,7 @@ pub trait CellAreaExt: IsA + 'static { #[allow(deprecated)] #[doc(alias = "gtk_cell_area_foreach")] fn foreach bool>(&self, callback: P) { - let callback_data: P = callback; + let mut callback_data: P = callback; unsafe extern "C" fn callback_func bool>( renderer: *mut ffi::GtkCellRenderer, data: glib::ffi::gpointer, @@ -236,12 +236,12 @@ pub trait CellAreaExt: IsA + 'static { (*callback)(&renderer).into_glib() } let callback = Some(callback_func::

as _); - let super_callback0: &P = &callback_data; + let super_callback0: &mut P = &mut callback_data; unsafe { ffi::gtk_cell_area_foreach( self.as_ref().to_glib_none().0, callback, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } @@ -255,7 +255,7 @@ pub trait CellAreaExt: IsA + 'static { background_area: &gdk::Rectangle, callback: P, ) { - let callback_data: P = callback; + let mut callback_data: P = callback; unsafe extern "C" fn callback_func< P: FnMut(&CellRenderer, &gdk::Rectangle, &gdk::Rectangle) -> bool, >( @@ -271,7 +271,7 @@ pub trait CellAreaExt: IsA + 'static { (*callback)(&renderer, &cell_area, &cell_background).into_glib() } let callback = Some(callback_func::

as _); - let super_callback0: &P = &callback_data; + let super_callback0: &mut P = &mut callback_data; unsafe { ffi::gtk_cell_area_foreach_alloc( self.as_ref().to_glib_none().0, @@ -280,7 +280,7 @@ pub trait CellAreaExt: IsA + 'static { cell_area.to_glib_none().0, background_area.to_glib_none().0, callback, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/flow_box.rs b/gtk4/src/auto/flow_box.rs index c97d8c61da24..d3d46e052005 100644 --- a/gtk4/src/auto/flow_box.rs +++ b/gtk4/src/auto/flow_box.rs @@ -232,7 +232,7 @@ impl FlowBox { #[doc(alias = "gtk_flow_box_selected_foreach")] pub fn selected_foreach(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( box_: *mut ffi::GtkFlowBox, child: *mut ffi::GtkFlowBoxChild, @@ -244,12 +244,12 @@ impl FlowBox { (*callback)(&box_, &child) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_flow_box_selected_foreach( self.to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/icon_view.rs b/gtk4/src/auto/icon_view.rs index 336237e56b36..aac3480fb53f 100644 --- a/gtk4/src/auto/icon_view.rs +++ b/gtk4/src/auto/icon_view.rs @@ -543,7 +543,7 @@ impl IconView { #[allow(deprecated)] #[doc(alias = "gtk_icon_view_selected_foreach")] pub fn selected_foreach(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( icon_view: *mut ffi::GtkIconView, path: *mut ffi::GtkTreePath, @@ -555,12 +555,12 @@ impl IconView { (*callback)(&icon_view, &path) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_icon_view_selected_foreach( self.to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/list_box.rs b/gtk4/src/auto/list_box.rs index cf3c41abb01c..2e85ab75ad6a 100644 --- a/gtk4/src/auto/list_box.rs +++ b/gtk4/src/auto/list_box.rs @@ -245,7 +245,7 @@ impl ListBox { #[doc(alias = "gtk_list_box_selected_foreach")] pub fn selected_foreach(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( box_: *mut ffi::GtkListBox, row: *mut ffi::GtkListBoxRow, @@ -257,12 +257,12 @@ impl ListBox { (*callback)(&box_, &row) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_list_box_selected_foreach( self.to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/print_settings.rs b/gtk4/src/auto/print_settings.rs index ae88aa3204f1..cd78166a19d8 100644 --- a/gtk4/src/auto/print_settings.rs +++ b/gtk4/src/auto/print_settings.rs @@ -83,7 +83,7 @@ impl PrintSettings { #[doc(alias = "gtk_print_settings_foreach")] pub fn foreach(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( key: *const std::ffi::c_char, value: *const std::ffi::c_char, @@ -95,12 +95,12 @@ impl PrintSettings { (*callback)(key.as_str(), value.as_str()) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_print_settings_foreach( self.to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/text_iter.rs b/gtk4/src/auto/text_iter.rs index 0785bb68abd6..56c7a1c1b5f3 100644 --- a/gtk4/src/auto/text_iter.rs +++ b/gtk4/src/auto/text_iter.rs @@ -64,7 +64,7 @@ impl TextIter { pred: P, limit: Option<&TextIter>, ) -> bool { - let pred_data: P = pred; + let mut pred_data: P = pred; unsafe extern "C" fn pred_func bool>( ch: u32, user_data: glib::ffi::gpointer, @@ -75,12 +75,12 @@ impl TextIter { (*callback)(ch).into_glib() } let pred = Some(pred_func::

as _); - let super_callback0: &P = &pred_data; + let super_callback0: &mut P = &mut pred_data; unsafe { from_glib(ffi::gtk_text_iter_backward_find_char( self.to_glib_none_mut().0, pred, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, limit.to_glib_none().0, )) } @@ -332,7 +332,7 @@ impl TextIter { pred: P, limit: Option<&TextIter>, ) -> bool { - let pred_data: P = pred; + let mut pred_data: P = pred; unsafe extern "C" fn pred_func bool>( ch: u32, user_data: glib::ffi::gpointer, @@ -343,12 +343,12 @@ impl TextIter { (*callback)(ch).into_glib() } let pred = Some(pred_func::

as _); - let super_callback0: &P = &pred_data; + let super_callback0: &mut P = &mut pred_data; unsafe { from_glib(ffi::gtk_text_iter_forward_find_char( self.to_glib_none_mut().0, pred, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, limit.to_glib_none().0, )) } diff --git a/gtk4/src/auto/text_tag_table.rs b/gtk4/src/auto/text_tag_table.rs index 64eb1ad50da2..ca714730f1b7 100644 --- a/gtk4/src/auto/text_tag_table.rs +++ b/gtk4/src/auto/text_tag_table.rs @@ -38,7 +38,7 @@ impl TextTagTable { #[doc(alias = "gtk_text_tag_table_foreach")] pub fn foreach(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( tag: *mut ffi::GtkTextTag, data: glib::ffi::gpointer, @@ -48,12 +48,12 @@ impl TextTagTable { (*callback)(&tag) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_text_tag_table_foreach( self.to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/tree_model.rs b/gtk4/src/auto/tree_model.rs index 071d375f9a4f..8deae398d223 100644 --- a/gtk4/src/auto/tree_model.rs +++ b/gtk4/src/auto/tree_model.rs @@ -29,7 +29,7 @@ pub trait TreeModelExt: IsA + 'static { #[allow(deprecated)] #[doc(alias = "gtk_tree_model_foreach")] fn foreach bool>(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func bool>( model: *mut ffi::GtkTreeModel, path: *mut ffi::GtkTreePath, @@ -43,12 +43,12 @@ pub trait TreeModelExt: IsA + 'static { (*callback)(&model, &path, &iter).into_glib() } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_tree_model_foreach( self.as_ref().to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/tree_selection.rs b/gtk4/src/auto/tree_selection.rs index ba694e2dd4b6..0cfe357f6ed5 100644 --- a/gtk4/src/auto/tree_selection.rs +++ b/gtk4/src/auto/tree_selection.rs @@ -153,7 +153,7 @@ impl TreeSelection { #[allow(deprecated)] #[doc(alias = "gtk_tree_selection_selected_foreach")] pub fn selected_foreach(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( model: *mut ffi::GtkTreeModel, path: *mut ffi::GtkTreePath, @@ -167,12 +167,12 @@ impl TreeSelection { (*callback)(&model, &path, &iter) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_tree_selection_selected_foreach( self.to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/tree_view.rs b/gtk4/src/auto/tree_view.rs index 9ac065f28eac..be42decf1035 100644 --- a/gtk4/src/auto/tree_view.rs +++ b/gtk4/src/auto/tree_view.rs @@ -1228,7 +1228,7 @@ pub trait TreeViewExt: IsA + 'static { #[allow(deprecated)] #[doc(alias = "gtk_tree_view_map_expanded_rows")] fn map_expanded_rows(&self, func: P) { - let func_data: P = func; + let mut func_data: P = func; unsafe extern "C" fn func_func( tree_view: *mut ffi::GtkTreeView, path: *mut ffi::GtkTreePath, @@ -1240,12 +1240,12 @@ pub trait TreeViewExt: IsA + 'static { (*callback)(&tree_view, &path) } let func = Some(func_func::

as _); - let super_callback0: &P = &func_data; + let super_callback0: &mut P = &mut func_data; unsafe { ffi::gtk_tree_view_map_expanded_rows( self.as_ref().to_glib_none().0, func, - super_callback0 as *const _ as *mut _, + super_callback0 as *mut _ as *mut _, ); } } diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gtk4/src/auto/versions.txt +++ b/gtk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383) diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index 5b6725ffd362..9cb1c033d627 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eeb346bf25ed) +Generated by gir (https://github.com/gtk-rs/gir @ e5ad53c3ad05) from gir-files (https://github.com/gtk-rs/gir-files @ f7af0e711383)