From d9c40d93cec221b4b9f76681f25d96a0c7dbbc9f Mon Sep 17 00:00:00 2001 From: Jason Francis Date: Sun, 5 Mar 2023 14:35:37 -0500 Subject: [PATCH] Regenerate gir for returned collections --- gdk4-wayland/src/auto/versions.txt | 4 ++-- gdk4-wayland/sys/versions.txt | 4 ++-- gdk4-win32/src/auto/versions.txt | 4 ++-- gdk4-win32/sys/versions.txt | 4 ++-- gdk4-x11/src/auto/versions.txt | 4 ++-- gdk4-x11/sys/versions.txt | 4 ++-- gdk4/src/auto/display.rs | 4 ++-- gdk4/src/auto/display_manager.rs | 2 +- gdk4/src/auto/event.rs | 2 +- gdk4/src/auto/file_list.rs | 2 +- gdk4/src/auto/seat.rs | 8 ++++---- gdk4/src/auto/versions.txt | 4 ++-- gdk4/sys/versions.txt | 4 ++-- gir | 2 +- gir-files | 2 +- gsk4/src/auto/conic_gradient_node.rs | 2 +- gsk4/src/auto/linear_gradient_node.rs | 2 +- gsk4/src/auto/radial_gradient_node.rs | 2 +- gsk4/src/auto/text_node.rs | 2 +- gsk4/src/auto/versions.txt | 4 ++-- gsk4/sys/versions.txt | 4 ++-- gtk4/src/auto/application.rs | 16 ++++++++-------- gtk4/src/auto/builder.rs | 2 +- gtk4/src/auto/cell_area.rs | 4 ++-- gtk4/src/auto/cell_layout.rs | 4 ++-- gtk4/src/auto/flow_box.rs | 2 +- gtk4/src/auto/gesture.rs | 8 ++++---- gtk4/src/auto/gesture_stylus.rs | 2 +- gtk4/src/auto/icon_theme.rs | 4 ++-- gtk4/src/auto/icon_view.rs | 2 +- gtk4/src/auto/list_box.rs | 2 +- gtk4/src/auto/paper_size.rs | 2 +- gtk4/src/auto/print_job.rs | 2 +- gtk4/src/auto/print_settings.rs | 2 +- gtk4/src/auto/printer.rs | 2 +- gtk4/src/auto/recent_info.rs | 4 ++-- gtk4/src/auto/recent_manager.rs | 4 ++-- gtk4/src/auto/size_group.rs | 2 +- gtk4/src/auto/text_child_anchor.rs | 4 ++-- gtk4/src/auto/text_iter.rs | 6 +++--- gtk4/src/auto/tree_selection.rs | 2 +- gtk4/src/auto/tree_view.rs | 4 ++-- gtk4/src/auto/versions.txt | 4 ++-- gtk4/src/auto/widget.rs | 8 ++++---- gtk4/src/auto/window.rs | 2 +- gtk4/src/auto/window_group.rs | 4 ++-- gtk4/sys/versions.txt | 4 ++-- 47 files changed, 86 insertions(+), 86 deletions(-) diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4/src/auto/display.rs b/gdk4/src/auto/display.rs index fdcb4ee46afa..27ae878635be 100644 --- a/gdk4/src/auto/display.rs +++ b/gdk4/src/auto/display.rs @@ -113,7 +113,7 @@ pub trait DisplayExt: 'static { fn is_rgba(&self) -> bool; #[doc(alias = "gdk_display_list_seats")] - fn list_seats(&self) -> Vec; + fn list_seats(&self) -> glib::List; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] @@ -285,7 +285,7 @@ impl> DisplayExt for O { unsafe { from_glib(ffi::gdk_display_is_rgba(self.as_ref().to_glib_none().0)) } } - fn list_seats(&self) -> Vec { + fn list_seats(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_display_list_seats( self.as_ref().to_glib_none().0, diff --git a/gdk4/src/auto/display_manager.rs b/gdk4/src/auto/display_manager.rs index dd81ab711a57..6fc3fe46c037 100644 --- a/gdk4/src/auto/display_manager.rs +++ b/gdk4/src/auto/display_manager.rs @@ -31,7 +31,7 @@ impl DisplayManager { } #[doc(alias = "gdk_display_manager_list_displays")] - pub fn list_displays(&self) -> Vec { + pub fn list_displays(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_display_manager_list_displays( self.to_glib_none().0, diff --git a/gdk4/src/auto/event.rs b/gdk4/src/auto/event.rs index faf17386e971..c3d8d197feb0 100644 --- a/gdk4/src/auto/event.rs +++ b/gdk4/src/auto/event.rs @@ -112,7 +112,7 @@ impl Event { #[doc(alias = "gdk_event_get_history")] #[doc(alias = "get_history")] - pub fn history(&self) -> Vec { + pub fn history(&self) -> glib::Slice { unsafe { let mut out_n_coords = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_container_num( diff --git a/gdk4/src/auto/file_list.rs b/gdk4/src/auto/file_list.rs index b449dc6984e9..db6eecd4389c 100644 --- a/gdk4/src/auto/file_list.rs +++ b/gdk4/src/auto/file_list.rs @@ -33,7 +33,7 @@ impl FileList { #[doc(alias = "gdk_file_list_get_files")] #[doc(alias = "get_files")] - pub fn files(&self) -> Vec { + pub fn files(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_file_list_get_files(mut_override( self.to_glib_none().0, diff --git a/gdk4/src/auto/seat.rs b/gdk4/src/auto/seat.rs index e47c661f630f..f8789069cad3 100644 --- a/gdk4/src/auto/seat.rs +++ b/gdk4/src/auto/seat.rs @@ -30,7 +30,7 @@ pub trait SeatExt: 'static { #[doc(alias = "gdk_seat_get_devices")] #[doc(alias = "get_devices")] - fn devices(&self, capabilities: SeatCapabilities) -> Vec; + fn devices(&self, capabilities: SeatCapabilities) -> glib::List; #[doc(alias = "gdk_seat_get_display")] #[doc(alias = "get_display")] @@ -46,7 +46,7 @@ pub trait SeatExt: 'static { #[doc(alias = "gdk_seat_get_tools")] #[doc(alias = "get_tools")] - fn tools(&self) -> Vec; + fn tools(&self) -> glib::List; #[doc(alias = "device-added")] fn connect_device_added(&self, f: F) -> SignalHandlerId; @@ -70,7 +70,7 @@ impl> SeatExt for O { } } - fn devices(&self, capabilities: SeatCapabilities) -> Vec { + fn devices(&self, capabilities: SeatCapabilities) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_seat_get_devices( self.as_ref().to_glib_none().0, @@ -91,7 +91,7 @@ impl> SeatExt for O { unsafe { from_glib_none(ffi::gdk_seat_get_pointer(self.as_ref().to_glib_none().0)) } } - fn tools(&self) -> Vec { + fn tools(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_seat_get_tools( self.as_ref().to_glib_none().0, diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index 011e14cb76a4..9b2d3e2c28a1 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gir b/gir index 425f84d5af7f..95ecf2cb6f7a 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 425f84d5af7ff4e599b2528bb0e2f53657feb5cf +Subproject commit 95ecf2cb6f7aed0adb567e6b5c4eec1a9fe8af1a diff --git a/gir-files b/gir-files index 070b815b271d..b985117c8977 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 070b815b271d5f8c42104e257b23487de2ea8b21 +Subproject commit b985117c897783161d0237ea2fd1c881c555a393 diff --git a/gsk4/src/auto/conic_gradient_node.rs b/gsk4/src/auto/conic_gradient_node.rs index 6f8a4b3e9f09..cf924ca2d8a8 100644 --- a/gsk4/src/auto/conic_gradient_node.rs +++ b/gsk4/src/auto/conic_gradient_node.rs @@ -63,7 +63,7 @@ impl ConicGradientNode { #[doc(alias = "gsk_conic_gradient_node_get_color_stops")] #[doc(alias = "get_color_stops")] - pub fn color_stops(&self) -> Vec { + pub fn color_stops(&self) -> glib::Slice { unsafe { let mut n_stops = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_none_num( diff --git a/gsk4/src/auto/linear_gradient_node.rs b/gsk4/src/auto/linear_gradient_node.rs index e440a05cba18..f8f58e34f644 100644 --- a/gsk4/src/auto/linear_gradient_node.rs +++ b/gsk4/src/auto/linear_gradient_node.rs @@ -45,7 +45,7 @@ impl LinearGradientNode { #[doc(alias = "gsk_linear_gradient_node_get_color_stops")] #[doc(alias = "get_color_stops")] - pub fn color_stops(&self) -> Vec { + pub fn color_stops(&self) -> glib::Slice { unsafe { let mut n_stops = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_none_num( diff --git a/gsk4/src/auto/radial_gradient_node.rs b/gsk4/src/auto/radial_gradient_node.rs index e420dd1904f0..3e2efb3a53c5 100644 --- a/gsk4/src/auto/radial_gradient_node.rs +++ b/gsk4/src/auto/radial_gradient_node.rs @@ -61,7 +61,7 @@ impl RadialGradientNode { #[doc(alias = "gsk_radial_gradient_node_get_color_stops")] #[doc(alias = "get_color_stops")] - pub fn color_stops(&self) -> Vec { + pub fn color_stops(&self) -> glib::Slice { unsafe { let mut n_stops = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_none_num( diff --git a/gsk4/src/auto/text_node.rs b/gsk4/src/auto/text_node.rs index acc0b30ad4ca..975b81533faf 100644 --- a/gsk4/src/auto/text_node.rs +++ b/gsk4/src/auto/text_node.rs @@ -54,7 +54,7 @@ impl TextNode { #[doc(alias = "gsk_text_node_get_glyphs")] #[doc(alias = "get_glyphs")] - pub fn glyphs(&self) -> Vec { + pub fn glyphs(&self) -> glib::Slice { unsafe { let mut n_glyphs = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_none_num( diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index 011e14cb76a4..9b2d3e2c28a1 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gtk4/src/auto/application.rs b/gtk4/src/auto/application.rs index 97208ca9ed4f..19142b6413ab 100644 --- a/gtk4/src/auto/application.rs +++ b/gtk4/src/auto/application.rs @@ -115,11 +115,11 @@ pub trait GtkApplicationExt: 'static { #[doc(alias = "gtk_application_get_accels_for_action")] #[doc(alias = "get_accels_for_action")] - fn accels_for_action(&self, detailed_action_name: &str) -> Vec; + fn accels_for_action(&self, detailed_action_name: &str) -> glib::StrV; #[doc(alias = "gtk_application_get_actions_for_accel")] #[doc(alias = "get_actions_for_accel")] - fn actions_for_accel(&self, accel: &str) -> Vec; + fn actions_for_accel(&self, accel: &str) -> glib::StrV; #[doc(alias = "gtk_application_get_active_window")] #[doc(alias = "get_active_window")] @@ -139,7 +139,7 @@ pub trait GtkApplicationExt: 'static { #[doc(alias = "gtk_application_get_windows")] #[doc(alias = "get_windows")] - fn windows(&self) -> Vec; + fn windows(&self) -> glib::List; #[doc(alias = "gtk_application_inhibit")] fn inhibit( @@ -150,7 +150,7 @@ pub trait GtkApplicationExt: 'static { ) -> u32; #[doc(alias = "gtk_application_list_action_descriptions")] - fn list_action_descriptions(&self) -> Vec; + fn list_action_descriptions(&self) -> glib::StrV; #[doc(alias = "gtk_application_remove_window")] fn remove_window(&self, window: &impl IsA); @@ -205,7 +205,7 @@ impl> GtkApplicationExt for O { } } - fn accels_for_action(&self, detailed_action_name: &str) -> Vec { + fn accels_for_action(&self, detailed_action_name: &str) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_application_get_accels_for_action( self.as_ref().to_glib_none().0, @@ -214,7 +214,7 @@ impl> GtkApplicationExt for O { } } - fn actions_for_accel(&self, accel: &str) -> Vec { + fn actions_for_accel(&self, accel: &str) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_application_get_actions_for_accel( self.as_ref().to_glib_none().0, @@ -257,7 +257,7 @@ impl> GtkApplicationExt for O { } } - fn windows(&self) -> Vec { + fn windows(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_application_get_windows( self.as_ref().to_glib_none().0, @@ -281,7 +281,7 @@ impl> GtkApplicationExt for O { } } - fn list_action_descriptions(&self) -> Vec { + fn list_action_descriptions(&self) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_application_list_action_descriptions( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/builder.rs b/gtk4/src/auto/builder.rs index a0c1e8007e04..32ab3fb5aa37 100644 --- a/gtk4/src/auto/builder.rs +++ b/gtk4/src/auto/builder.rs @@ -223,7 +223,7 @@ impl Builder { #[doc(alias = "gtk_builder_get_objects")] #[doc(alias = "get_objects")] - pub fn objects(&self) -> Vec { + pub fn objects(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_builder_get_objects( self.to_glib_none().0, diff --git a/gtk4/src/auto/cell_area.rs b/gtk4/src/auto/cell_area.rs index f49c39124de3..bf42ec976607 100644 --- a/gtk4/src/auto/cell_area.rs +++ b/gtk4/src/auto/cell_area.rs @@ -191,7 +191,7 @@ pub trait CellAreaExt: 'static { #[allow(deprecated)] #[doc(alias = "gtk_cell_area_get_focus_siblings")] #[doc(alias = "get_focus_siblings")] - fn focus_siblings(&self, renderer: &impl IsA) -> Vec; + fn focus_siblings(&self, renderer: &impl IsA) -> glib::List; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] @@ -675,7 +675,7 @@ impl> CellAreaExt for O { } #[allow(deprecated)] - fn focus_siblings(&self, renderer: &impl IsA) -> Vec { + fn focus_siblings(&self, renderer: &impl IsA) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_cell_area_get_focus_siblings( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/cell_layout.rs b/gtk4/src/auto/cell_layout.rs index 693f756efc89..3af6950d0476 100644 --- a/gtk4/src/auto/cell_layout.rs +++ b/gtk4/src/auto/cell_layout.rs @@ -46,7 +46,7 @@ pub trait CellLayoutExt: 'static { #[allow(deprecated)] #[doc(alias = "gtk_cell_layout_get_cells")] #[doc(alias = "get_cells")] - fn cells(&self) -> Vec; + fn cells(&self) -> glib::List; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] @@ -113,7 +113,7 @@ impl> CellLayoutExt for O { } #[allow(deprecated)] - fn cells(&self) -> Vec { + fn cells(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_cell_layout_get_cells( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/flow_box.rs b/gtk4/src/auto/flow_box.rs index c4c22b10eb9a..c3d367ece9ee 100644 --- a/gtk4/src/auto/flow_box.rs +++ b/gtk4/src/auto/flow_box.rs @@ -145,7 +145,7 @@ impl FlowBox { #[doc(alias = "gtk_flow_box_get_selected_children")] #[doc(alias = "get_selected_children")] - pub fn selected_children(&self) -> Vec { + pub fn selected_children(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_flow_box_get_selected_children( self.to_glib_none().0, diff --git a/gtk4/src/auto/gesture.rs b/gtk4/src/auto/gesture.rs index 64b3fccf0378..659bc2fcdf68 100644 --- a/gtk4/src/auto/gesture.rs +++ b/gtk4/src/auto/gesture.rs @@ -39,7 +39,7 @@ pub trait GestureExt: 'static { #[doc(alias = "gtk_gesture_get_group")] #[doc(alias = "get_group")] - fn group(&self) -> Vec; + fn group(&self) -> glib::List; #[doc(alias = "gtk_gesture_get_last_event")] #[doc(alias = "get_last_event")] @@ -59,7 +59,7 @@ pub trait GestureExt: 'static { #[doc(alias = "gtk_gesture_get_sequences")] #[doc(alias = "get_sequences")] - fn sequences(&self) -> Vec; + fn sequences(&self) -> glib::List; #[doc(alias = "gtk_gesture_group")] #[doc(alias = "group")] @@ -161,7 +161,7 @@ impl> GestureExt for O { unsafe { from_glib_none(ffi::gtk_gesture_get_device(self.as_ref().to_glib_none().0)) } } - fn group(&self) -> Vec { + fn group(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_gesture_get_group( self.as_ref().to_glib_none().0, @@ -213,7 +213,7 @@ impl> GestureExt for O { } } - fn sequences(&self) -> Vec { + fn sequences(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_gesture_get_sequences( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/gesture_stylus.rs b/gtk4/src/auto/gesture_stylus.rs index 5e459cd4ad29..b9c1fa4783cc 100644 --- a/gtk4/src/auto/gesture_stylus.rs +++ b/gtk4/src/auto/gesture_stylus.rs @@ -54,7 +54,7 @@ impl GestureStylus { #[doc(alias = "gtk_gesture_stylus_get_backlog")] #[doc(alias = "get_backlog")] - pub fn backlog(&self) -> Option> { + pub fn backlog(&self) -> Option> { unsafe { let mut backlog = ptr::null_mut(); let mut n_elems = mem::MaybeUninit::uninit(); diff --git a/gtk4/src/auto/icon_theme.rs b/gtk4/src/auto/icon_theme.rs index 55436eaa3785..0b0a4fd14e38 100644 --- a/gtk4/src/auto/icon_theme.rs +++ b/gtk4/src/auto/icon_theme.rs @@ -59,7 +59,7 @@ impl IconTheme { #[doc(alias = "gtk_icon_theme_get_icon_names")] #[doc(alias = "get_icon_names")] - pub fn icon_names(&self) -> Vec { + pub fn icon_names(&self) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_icon_theme_get_icon_names( self.to_glib_none().0, @@ -69,7 +69,7 @@ impl IconTheme { #[doc(alias = "gtk_icon_theme_get_resource_path")] #[doc(alias = "get_resource_path")] - pub fn resource_path(&self) -> Vec { + pub fn resource_path(&self) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_icon_theme_get_resource_path( self.to_glib_none().0, diff --git a/gtk4/src/auto/icon_view.rs b/gtk4/src/auto/icon_view.rs index 8c537688fc63..af04fef14488 100644 --- a/gtk4/src/auto/icon_view.rs +++ b/gtk4/src/auto/icon_view.rs @@ -374,7 +374,7 @@ impl IconView { #[allow(deprecated)] #[doc(alias = "gtk_icon_view_get_selected_items")] #[doc(alias = "get_selected_items")] - pub fn selected_items(&self) -> Vec { + pub fn selected_items(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_icon_view_get_selected_items( self.to_glib_none().0, diff --git a/gtk4/src/auto/list_box.rs b/gtk4/src/auto/list_box.rs index c3ed0ee8cb5e..2d1437080492 100644 --- a/gtk4/src/auto/list_box.rs +++ b/gtk4/src/auto/list_box.rs @@ -136,7 +136,7 @@ impl ListBox { #[doc(alias = "gtk_list_box_get_selected_rows")] #[doc(alias = "get_selected_rows")] - pub fn selected_rows(&self) -> Vec { + pub fn selected_rows(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_list_box_get_selected_rows( self.to_glib_none().0, diff --git a/gtk4/src/auto/paper_size.rs b/gtk4/src/auto/paper_size.rs index b5244e5abe0b..0f371c8c6c8d 100644 --- a/gtk4/src/auto/paper_size.rs +++ b/gtk4/src/auto/paper_size.rs @@ -260,7 +260,7 @@ impl PaperSize { #[doc(alias = "gtk_paper_size_get_paper_sizes")] #[doc(alias = "get_paper_sizes")] - pub fn paper_sizes(include_custom: bool) -> Vec { + pub fn paper_sizes(include_custom: bool) -> glib::List { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_paper_size_get_paper_sizes( diff --git a/gtk4/src/auto/print_job.rs b/gtk4/src/auto/print_job.rs index 227c8bfd0aed..34ea8aa5de85 100644 --- a/gtk4/src/auto/print_job.rs +++ b/gtk4/src/auto/print_job.rs @@ -66,7 +66,7 @@ impl PrintJob { #[doc(alias = "gtk_print_job_get_page_ranges")] #[doc(alias = "get_page_ranges")] - pub fn page_ranges(&self) -> Vec { + pub fn page_ranges(&self) -> glib::Slice { unsafe { let mut n_ranges = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_none_num( diff --git a/gtk4/src/auto/print_settings.rs b/gtk4/src/auto/print_settings.rs index 1d1b53aa8a3d..282dab768017 100644 --- a/gtk4/src/auto/print_settings.rs +++ b/gtk4/src/auto/print_settings.rs @@ -267,7 +267,7 @@ impl PrintSettings { #[doc(alias = "gtk_print_settings_get_page_ranges")] #[doc(alias = "get_page_ranges")] - pub fn page_ranges(&self) -> Vec { + pub fn page_ranges(&self) -> glib::Slice { unsafe { let mut num_ranges = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_full_num( diff --git a/gtk4/src/auto/printer.rs b/gtk4/src/auto/printer.rs index ceb7f99be297..1cb4aaafd44f 100644 --- a/gtk4/src/auto/printer.rs +++ b/gtk4/src/auto/printer.rs @@ -178,7 +178,7 @@ impl Printer { } #[doc(alias = "gtk_printer_list_papers")] - pub fn list_papers(&self) -> Vec { + pub fn list_papers(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_printer_list_papers( self.to_glib_none().0, diff --git a/gtk4/src/auto/recent_info.rs b/gtk4/src/auto/recent_info.rs index 6c89d7ced412..19f0a5ba1639 100644 --- a/gtk4/src/auto/recent_info.rs +++ b/gtk4/src/auto/recent_info.rs @@ -82,7 +82,7 @@ impl RecentInfo { #[doc(alias = "gtk_recent_info_get_applications")] #[doc(alias = "get_applications")] - pub fn applications(&self) -> Vec { + pub fn applications(&self) -> glib::StrV { unsafe { let mut length = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_full_num( @@ -113,7 +113,7 @@ impl RecentInfo { #[doc(alias = "gtk_recent_info_get_groups")] #[doc(alias = "get_groups")] - pub fn groups(&self) -> Vec { + pub fn groups(&self) -> glib::StrV { unsafe { let mut length = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_full_num( diff --git a/gtk4/src/auto/recent_manager.rs b/gtk4/src/auto/recent_manager.rs index 442b796ea429..7ab05b553b2e 100644 --- a/gtk4/src/auto/recent_manager.rs +++ b/gtk4/src/auto/recent_manager.rs @@ -52,7 +52,7 @@ pub trait RecentManagerExt: 'static { #[doc(alias = "gtk_recent_manager_get_items")] #[doc(alias = "get_items")] - fn items(&self) -> Vec; + fn items(&self) -> glib::List; #[doc(alias = "gtk_recent_manager_has_item")] fn has_item(&self, uri: &str) -> bool; @@ -100,7 +100,7 @@ impl> RecentManagerExt for O { } } - fn items(&self) -> Vec { + fn items(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_recent_manager_get_items( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/size_group.rs b/gtk4/src/auto/size_group.rs index bd33d5f3b2b0..aab5b7ea3285 100644 --- a/gtk4/src/auto/size_group.rs +++ b/gtk4/src/auto/size_group.rs @@ -41,7 +41,7 @@ impl SizeGroup { #[doc(alias = "gtk_size_group_get_widgets")] #[doc(alias = "get_widgets")] - pub fn widgets(&self) -> Vec { + pub fn widgets(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_size_group_get_widgets( self.to_glib_none().0, diff --git a/gtk4/src/auto/text_child_anchor.rs b/gtk4/src/auto/text_child_anchor.rs index 8fb5d192e48d..435895ade771 100644 --- a/gtk4/src/auto/text_child_anchor.rs +++ b/gtk4/src/auto/text_child_anchor.rs @@ -51,7 +51,7 @@ pub trait TextChildAnchorExt: 'static { #[doc(alias = "gtk_text_child_anchor_get_widgets")] #[doc(alias = "get_widgets")] - fn widgets(&self) -> Vec; + fn widgets(&self) -> glib::PtrSlice; } impl> TextChildAnchorExt for O { @@ -63,7 +63,7 @@ impl> TextChildAnchorExt for O { } } - fn widgets(&self) -> Vec { + fn widgets(&self) -> glib::PtrSlice { unsafe { let mut out_len = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_container_num( diff --git a/gtk4/src/auto/text_iter.rs b/gtk4/src/auto/text_iter.rs index 7cf31340dba3..a44544883879 100644 --- a/gtk4/src/auto/text_iter.rs +++ b/gtk4/src/auto/text_iter.rs @@ -576,7 +576,7 @@ impl TextIter { #[doc(alias = "gtk_text_iter_get_marks")] #[doc(alias = "get_marks")] - pub fn marks(&self) -> Vec { + pub fn marks(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_text_iter_get_marks( self.to_glib_none().0, @@ -609,7 +609,7 @@ impl TextIter { #[doc(alias = "gtk_text_iter_get_tags")] #[doc(alias = "get_tags")] - pub fn tags(&self) -> Vec { + pub fn tags(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_text_iter_get_tags( self.to_glib_none().0, @@ -630,7 +630,7 @@ impl TextIter { #[doc(alias = "gtk_text_iter_get_toggled_tags")] #[doc(alias = "get_toggled_tags")] - pub fn toggled_tags(&self, toggled_on: bool) -> Vec { + pub fn toggled_tags(&self, toggled_on: bool) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_text_iter_get_toggled_tags( self.to_glib_none().0, diff --git a/gtk4/src/auto/tree_selection.rs b/gtk4/src/auto/tree_selection.rs index 89abd8a82db7..e40ac636c310 100644 --- a/gtk4/src/auto/tree_selection.rs +++ b/gtk4/src/auto/tree_selection.rs @@ -61,7 +61,7 @@ impl TreeSelection { #[allow(deprecated)] #[doc(alias = "gtk_tree_selection_get_selected_rows")] #[doc(alias = "get_selected_rows")] - pub fn selected_rows(&self) -> (Vec, TreeModel) { + pub fn selected_rows(&self) -> (glib::List, TreeModel) { unsafe { let mut model = ptr::null_mut(); let ret = FromGlibPtrContainer::from_glib_full( diff --git a/gtk4/src/auto/tree_view.rs b/gtk4/src/auto/tree_view.rs index 7a76d914a42f..21908aea7474 100644 --- a/gtk4/src/auto/tree_view.rs +++ b/gtk4/src/auto/tree_view.rs @@ -536,7 +536,7 @@ pub trait TreeViewExt: 'static { #[allow(deprecated)] #[doc(alias = "gtk_tree_view_get_columns")] #[doc(alias = "get_columns")] - fn columns(&self) -> Vec; + fn columns(&self) -> glib::List; #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")] #[allow(deprecated)] @@ -1364,7 +1364,7 @@ impl> TreeViewExt for O { } #[allow(deprecated)] - fn columns(&self) -> Vec { + fn columns(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_tree_view_get_columns( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index 011e14cb76a4..9b2d3e2c28a1 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 @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gtk4/src/auto/widget.rs b/gtk4/src/auto/widget.rs index 4e10da71da4c..db1cc2a16fd6 100644 --- a/gtk4/src/auto/widget.rs +++ b/gtk4/src/auto/widget.rs @@ -165,7 +165,7 @@ pub trait WidgetExt: 'static { #[doc(alias = "gtk_widget_get_css_classes")] #[doc(alias = "get_css_classes")] - fn css_classes(&self) -> Vec; + fn css_classes(&self) -> glib::StrV; #[doc(alias = "gtk_widget_get_css_name")] #[doc(alias = "get_css_name")] @@ -428,7 +428,7 @@ pub trait WidgetExt: 'static { fn keynav_failed(&self, direction: DirectionType) -> bool; #[doc(alias = "gtk_widget_list_mnemonic_labels")] - fn list_mnemonic_labels(&self) -> Vec; + fn list_mnemonic_labels(&self) -> glib::List; #[doc(alias = "gtk_widget_map")] fn map(&self); @@ -1054,7 +1054,7 @@ impl> WidgetExt for O { } } - fn css_classes(&self) -> Vec { + fn css_classes(&self) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_widget_get_css_classes( self.as_ref().to_glib_none().0, @@ -1485,7 +1485,7 @@ impl> WidgetExt for O { } } - fn list_mnemonic_labels(&self) -> Vec { + fn list_mnemonic_labels(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_widget_list_mnemonic_labels( self.as_ref().to_glib_none().0, diff --git a/gtk4/src/auto/window.rs b/gtk4/src/auto/window.rs index 676b5241acd1..6d50bcb80286 100644 --- a/gtk4/src/auto/window.rs +++ b/gtk4/src/auto/window.rs @@ -54,7 +54,7 @@ impl Window { } #[doc(alias = "gtk_window_list_toplevels")] - pub fn list_toplevels() -> Vec { + pub fn list_toplevels() -> glib::List { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_window_list_toplevels()) } } diff --git a/gtk4/src/auto/window_group.rs b/gtk4/src/auto/window_group.rs index 214c8d335d34..809a91dde999 100644 --- a/gtk4/src/auto/window_group.rs +++ b/gtk4/src/auto/window_group.rs @@ -36,7 +36,7 @@ pub trait WindowGroupExt: 'static { fn add_window(&self, window: &impl IsA); #[doc(alias = "gtk_window_group_list_windows")] - fn list_windows(&self) -> Vec; + fn list_windows(&self) -> glib::List; #[doc(alias = "gtk_window_group_remove_window")] fn remove_window(&self, window: &impl IsA); @@ -52,7 +52,7 @@ impl> WindowGroupExt for O { } } - fn list_windows(&self) -> Vec { + fn list_windows(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_window_group_list_windows( self.as_ref().to_glib_none().0, diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index 011e14cb76a4..9b2d3e2c28a1 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f) -from gir-files (https://github.com/gtk-rs/gir-files @ 070b815b271d) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)