From fe44fe79e94758c3e9e56584abd17b19b049ae80 Mon Sep 17 00:00:00 2001 From: Jason Francis Date: Sun, 5 Mar 2023 14:39:44 -0500 Subject: [PATCH] Regenerate gir for returned collections --- atk/src/auto/text.rs | 4 ++-- atk/src/auto/value.rs | 4 ++-- atk/src/auto/versions.txt | 4 ++-- atk/sys/versions.txt | 4 ++-- gdk/src/auto/device.rs | 8 ++++---- gdk/src/auto/display.rs | 2 +- gdk/src/auto/display_manager.rs | 2 +- gdk/src/auto/drag_context.rs | 2 +- gdk/src/auto/screen.rs | 6 +++--- gdk/src/auto/seat.rs | 4 ++-- gdk/src/auto/versions.txt | 4 ++-- gdk/src/auto/window.rs | 6 +++--- gdk/sys/versions.txt | 4 ++-- gdkx11/src/auto/versions.txt | 4 ++-- gdkx11/sys/versions.txt | 4 ++-- gir | 2 +- gir-files | 2 +- gtk/src/auto/application.rs | 16 ++++++++-------- gtk/src/auto/builder.rs | 4 ++-- gtk/src/auto/cell_area.rs | 4 ++-- gtk/src/auto/cell_layout.rs | 4 ++-- gtk/src/auto/clipboard.rs | 4 ++-- gtk/src/auto/container.rs | 8 ++++---- gtk/src/auto/file_chooser.rs | 16 ++++++++-------- gtk/src/auto/flow_box.rs | 4 ++-- gtk/src/auto/functions.rs | 2 +- gtk/src/auto/gesture.rs | 8 ++++---- gtk/src/auto/icon_theme.rs | 8 ++++---- gtk/src/auto/icon_view.rs | 4 ++-- gtk/src/auto/list_box.rs | 4 ++-- gtk/src/auto/menu.rs | 2 +- gtk/src/auto/paper_size.rs | 2 +- gtk/src/auto/places_sidebar.rs | 2 +- gtk/src/auto/print_settings.rs | 2 +- gtk/src/auto/radio_button.rs | 4 ++-- gtk/src/auto/radio_menu_item.rs | 4 ++-- gtk/src/auto/radio_tool_button.rs | 4 ++-- gtk/src/auto/recent_chooser.rs | 12 ++++++------ gtk/src/auto/recent_info.rs | 4 ++-- gtk/src/auto/recent_manager.rs | 4 ++-- gtk/src/auto/selection_data.rs | 4 ++-- gtk/src/auto/size_group.rs | 4 ++-- gtk/src/auto/style_context.rs | 4 ++-- gtk/src/auto/text_buffer.rs | 8 ++++---- gtk/src/auto/text_child_anchor.rs | 4 ++-- gtk/src/auto/text_iter.rs | 6 +++--- gtk/src/auto/tree_selection.rs | 4 ++-- gtk/src/auto/tree_view.rs | 4 ++-- gtk/src/auto/versions.txt | 4 ++-- gtk/src/auto/widget.rs | 8 ++++---- gtk/src/auto/widget_path.rs | 2 +- gtk/src/auto/window.rs | 8 ++++---- gtk/src/auto/window_group.rs | 4 ++-- gtk/sys/versions.txt | 4 ++-- 54 files changed, 130 insertions(+), 130 deletions(-) diff --git a/atk/src/auto/text.rs b/atk/src/auto/text.rs index c59faf14eb0f..d04c19dd8e19 100644 --- a/atk/src/auto/text.rs +++ b/atk/src/auto/text.rs @@ -38,7 +38,7 @@ pub trait TextExt: 'static { coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType, - ) -> Vec; + ) -> glib::PtrSlice; #[doc(alias = "atk_text_get_caret_offset")] #[doc(alias = "get_caret_offset")] @@ -169,7 +169,7 @@ impl> TextExt for O { coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType, - ) -> Vec { + ) -> glib::PtrSlice { unsafe { FromGlibPtrContainer::from_glib_full(ffi::atk_text_get_bounded_ranges( self.as_ref().to_glib_none().0, diff --git a/atk/src/auto/value.rs b/atk/src/auto/value.rs index b1cabc2ab48f..eb1f74efcd69 100644 --- a/atk/src/auto/value.rs +++ b/atk/src/auto/value.rs @@ -50,7 +50,7 @@ pub trait ValueExt: 'static { #[doc(alias = "atk_value_get_sub_ranges")] #[doc(alias = "get_sub_ranges")] - fn sub_ranges(&self) -> Vec; + fn sub_ranges(&self) -> glib::SList; #[doc(alias = "atk_value_get_value_and_text")] #[doc(alias = "get_value_and_text")] @@ -119,7 +119,7 @@ impl> ValueExt for O { unsafe { from_glib_full(ffi::atk_value_get_range(self.as_ref().to_glib_none().0)) } } - fn sub_ranges(&self) -> Vec { + fn sub_ranges(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_full(ffi::atk_value_get_sub_ranges( self.as_ref().to_glib_none().0, diff --git a/atk/src/auto/versions.txt b/atk/src/auto/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/atk/src/auto/versions.txt +++ b/atk/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/atk/sys/versions.txt b/atk/sys/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/atk/sys/versions.txt +++ b/atk/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk/src/auto/device.rs b/gdk/src/auto/device.rs index f5ebe6791a43..c50165b68021 100644 --- a/gdk/src/auto/device.rs +++ b/gdk/src/auto/device.rs @@ -121,10 +121,10 @@ pub trait DeviceExt: 'static { fn window_at_position_double(&self) -> (Option, f64, f64); #[doc(alias = "gdk_device_list_axes")] - fn list_axes(&self) -> Vec; + fn list_axes(&self) -> glib::List; #[doc(alias = "gdk_device_list_slave_devices")] - fn list_slave_devices(&self) -> Vec; + fn list_slave_devices(&self) -> glib::List; #[doc(alias = "gdk_device_set_axis_use")] fn set_axis_use(&self, index_: u32, use_: AxisUse); @@ -364,7 +364,7 @@ impl> DeviceExt for O { } } - fn list_axes(&self) -> Vec { + fn list_axes(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_device_list_axes( self.as_ref().to_glib_none().0, @@ -372,7 +372,7 @@ impl> DeviceExt for O { } } - fn list_slave_devices(&self) -> Vec { + fn list_slave_devices(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_device_list_slave_devices( self.as_ref().to_glib_none().0, diff --git a/gdk/src/auto/display.rs b/gdk/src/auto/display.rs index fc0475391395..0768d23b2ce7 100644 --- a/gdk/src/auto/display.rs +++ b/gdk/src/auto/display.rs @@ -169,7 +169,7 @@ impl Display { } #[doc(alias = "gdk_display_list_seats")] - pub fn list_seats(&self) -> Vec { + pub fn list_seats(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_display_list_seats( self.to_glib_none().0, diff --git a/gdk/src/auto/display_manager.rs b/gdk/src/auto/display_manager.rs index 25fe5cf4d06e..87cb7650e6e5 100644 --- a/gdk/src/auto/display_manager.rs +++ b/gdk/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/gdk/src/auto/drag_context.rs b/gdk/src/auto/drag_context.rs index 3427dcad53ff..b703ca35056f 100644 --- a/gdk/src/auto/drag_context.rs +++ b/gdk/src/auto/drag_context.rs @@ -81,7 +81,7 @@ impl DragContext { } #[doc(alias = "gdk_drag_context_list_targets")] - pub fn list_targets(&self) -> Vec { + pub fn list_targets(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gdk_drag_context_list_targets( self.to_glib_none().0, diff --git a/gdk/src/auto/screen.rs b/gdk/src/auto/screen.rs index aad7a2586f3c..cf9a4fbd79de 100644 --- a/gdk/src/auto/screen.rs +++ b/gdk/src/auto/screen.rs @@ -52,7 +52,7 @@ impl Screen { #[doc(alias = "gdk_screen_get_toplevel_windows")] #[doc(alias = "get_toplevel_windows")] - pub fn toplevel_windows(&self) -> Vec { + pub fn toplevel_windows(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_screen_get_toplevel_windows( self.to_glib_none().0, @@ -62,7 +62,7 @@ impl Screen { #[doc(alias = "gdk_screen_get_window_stack")] #[doc(alias = "get_window_stack")] - pub fn window_stack(&self) -> Vec { + pub fn window_stack(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gdk_screen_get_window_stack( self.to_glib_none().0, @@ -76,7 +76,7 @@ impl Screen { } #[doc(alias = "gdk_screen_list_visuals")] - pub fn list_visuals(&self) -> Vec { + pub fn list_visuals(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_screen_list_visuals( self.to_glib_none().0, diff --git a/gdk/src/auto/seat.rs b/gdk/src/auto/seat.rs index 938f344c719a..62d85c360e12 100644 --- a/gdk/src/auto/seat.rs +++ b/gdk/src/auto/seat.rs @@ -42,7 +42,7 @@ pub trait SeatExt: 'static { #[doc(alias = "gdk_seat_get_slaves")] #[doc(alias = "get_slaves")] - fn slaves(&self, capabilities: SeatCapabilities) -> Vec; + fn slaves(&self, capabilities: SeatCapabilities) -> glib::List; #[doc(alias = "gdk_seat_grab")] fn grab( @@ -92,7 +92,7 @@ impl> SeatExt for O { unsafe { from_glib_none(ffi::gdk_seat_get_pointer(self.as_ref().to_glib_none().0)) } } - fn slaves(&self, capabilities: SeatCapabilities) -> Vec { + fn slaves(&self, capabilities: SeatCapabilities) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_seat_get_slaves( self.as_ref().to_glib_none().0, diff --git a/gdk/src/auto/versions.txt b/gdk/src/auto/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/gdk/src/auto/versions.txt +++ b/gdk/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdk/src/auto/window.rs b/gdk/src/auto/window.rs index 4d15b5f7e6ff..1052f366e329 100644 --- a/gdk/src/auto/window.rs +++ b/gdk/src/auto/window.rs @@ -255,7 +255,7 @@ impl Window { #[doc(alias = "gdk_window_get_children")] #[doc(alias = "get_children")] - pub fn children(&self) -> Vec { + pub fn children(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gdk_window_get_children( self.to_glib_none().0, @@ -265,7 +265,7 @@ impl Window { //#[doc(alias = "gdk_window_get_children_with_user_data")] //#[doc(alias = "get_children_with_user_data")] - //pub fn children_with_user_data(&self, user_data: /*Unimplemented*/Option) -> Vec { + //pub fn children_with_user_data(&self, user_data: /*Unimplemented*/Option) -> glib::List { // unsafe { TODO: call ffi:gdk_window_get_children_with_user_data() } //} @@ -844,7 +844,7 @@ impl Window { } #[doc(alias = "gdk_window_peek_children")] - pub fn peek_children(&self) -> Vec { + pub fn peek_children(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gdk_window_peek_children( self.to_glib_none().0, diff --git a/gdk/sys/versions.txt b/gdk/sys/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/gdk/sys/versions.txt +++ b/gdk/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdkx11/src/auto/versions.txt b/gdkx11/src/auto/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/gdkx11/src/auto/versions.txt +++ b/gdkx11/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gdkx11/sys/versions.txt b/gdkx11/sys/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/gdkx11/sys/versions.txt +++ b/gdkx11/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 @ 4eaad6a722bf) +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 4eaad6a722bf..b985117c8977 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 4eaad6a722bf41028ea9210d2c356b7078b25008 +Subproject commit b985117c897783161d0237ea2fd1c881c555a393 diff --git a/gtk/src/auto/application.rs b/gtk/src/auto/application.rs index b207cd344573..c335318ee37c 100644 --- a/gtk/src/auto/application.rs +++ b/gtk/src/auto/application.rs @@ -121,11 +121,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")] @@ -149,7 +149,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( @@ -163,7 +163,7 @@ pub trait GtkApplicationExt: 'static { fn is_inhibited(&self, flags: ApplicationInhibitFlags) -> bool; #[doc(alias = "gtk_application_list_action_descriptions")] - fn list_action_descriptions(&self) -> Vec; + fn list_action_descriptions(&self) -> glib::StrV; #[doc(alias = "gtk_application_prefers_app_menu")] fn prefers_app_menu(&self) -> bool; @@ -233,7 +233,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, @@ -242,7 +242,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, @@ -293,7 +293,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, @@ -326,7 +326,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/gtk/src/auto/builder.rs b/gtk/src/auto/builder.rs index 500b322c8145..fb77c91bcc5b 100644 --- a/gtk/src/auto/builder.rs +++ b/gtk/src/auto/builder.rs @@ -78,7 +78,7 @@ pub trait BuilderExt: 'static { #[doc(alias = "gtk_builder_get_objects")] #[doc(alias = "get_objects")] - fn objects(&self) -> Vec; + fn objects(&self) -> glib::SList; #[doc(alias = "gtk_builder_get_translation_domain")] #[doc(alias = "get_translation_domain")] @@ -146,7 +146,7 @@ impl> BuilderExt for O { } } - fn objects(&self) -> Vec { + fn objects(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_builder_get_objects( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/cell_area.rs b/gtk/src/auto/cell_area.rs index e66702952d8b..ec5a8c3bae49 100644 --- a/gtk/src/auto/cell_area.rs +++ b/gtk/src/auto/cell_area.rs @@ -180,7 +180,7 @@ pub trait CellAreaExt: 'static { #[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; #[doc(alias = "gtk_cell_area_get_preferred_height")] #[doc(alias = "get_preferred_height")] @@ -669,7 +669,7 @@ impl> CellAreaExt for O { } } - 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/gtk/src/auto/cell_layout.rs b/gtk/src/auto/cell_layout.rs index b95369f37087..f47052265248 100644 --- a/gtk/src/auto/cell_layout.rs +++ b/gtk/src/auto/cell_layout.rs @@ -35,7 +35,7 @@ pub trait CellLayoutExt: 'static { #[doc(alias = "gtk_cell_layout_get_cells")] #[doc(alias = "get_cells")] - fn cells(&self) -> Vec; + fn cells(&self) -> glib::List; #[doc(alias = "gtk_cell_layout_pack_end")] fn pack_end(&self, cell: &impl IsA, expand: bool); @@ -92,7 +92,7 @@ impl> CellLayoutExt for O { } } - 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/gtk/src/auto/clipboard.rs b/gtk/src/auto/clipboard.rs index 6a9b3ed98f8f..c0396307b38d 100644 --- a/gtk/src/auto/clipboard.rs +++ b/gtk/src/auto/clipboard.rs @@ -218,7 +218,7 @@ impl Clipboard { } #[doc(alias = "gtk_clipboard_wait_for_targets")] - pub fn wait_for_targets(&self) -> Option> { + pub fn wait_for_targets(&self) -> Option> { unsafe { let mut targets = ptr::null_mut(); let mut n_targets = mem::MaybeUninit::uninit(); @@ -244,7 +244,7 @@ impl Clipboard { } #[doc(alias = "gtk_clipboard_wait_for_uris")] - pub fn wait_for_uris(&self) -> Vec { + pub fn wait_for_uris(&self) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_clipboard_wait_for_uris( self.to_glib_none().0, diff --git a/gtk/src/auto/container.rs b/gtk/src/auto/container.rs index f0253a6fba93..28af2d158ad1 100644 --- a/gtk/src/auto/container.rs +++ b/gtk/src/auto/container.rs @@ -67,13 +67,13 @@ pub trait ContainerExt: 'static { #[doc(alias = "gtk_container_get_children")] #[doc(alias = "get_children")] - fn children(&self) -> Vec; + fn children(&self) -> glib::List; //#[cfg_attr(feature = "v3_24", deprecated = "Since 3.24")] //#[allow(deprecated)] //#[doc(alias = "gtk_container_get_focus_chain")] //#[doc(alias = "get_focus_chain")] - //fn focus_chain(&self, focusable_widgets: /*Unimplemented*/Vec) -> bool; + //fn focus_chain(&self, focusable_widgets: /*Unimplemented*/glib::List) -> bool; #[doc(alias = "gtk_container_get_focus_child")] #[doc(alias = "get_focus_child")] @@ -259,7 +259,7 @@ impl> ContainerExt for O { unsafe { ffi::gtk_container_get_border_width(self.as_ref().to_glib_none().0) } } - fn children(&self) -> Vec { + fn children(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_container_get_children( self.as_ref().to_glib_none().0, @@ -268,7 +268,7 @@ impl> ContainerExt for O { } //#[allow(deprecated)] - //fn focus_chain(&self, focusable_widgets: /*Unimplemented*/Vec) -> bool { + //fn focus_chain(&self, focusable_widgets: /*Unimplemented*/glib::List) -> bool { // unsafe { TODO: call ffi:gtk_container_get_focus_chain() } //} diff --git a/gtk/src/auto/file_chooser.rs b/gtk/src/auto/file_chooser.rs index ae93ad36308e..6d29f407dc08 100644 --- a/gtk/src/auto/file_chooser.rs +++ b/gtk/src/auto/file_chooser.rs @@ -83,7 +83,7 @@ pub trait FileChooserExt: 'static { #[doc(alias = "gtk_file_chooser_get_files")] #[doc(alias = "get_files")] - fn files(&self) -> Vec; + fn files(&self) -> glib::SList; #[doc(alias = "gtk_file_chooser_get_filter")] #[doc(alias = "get_filter")] @@ -127,17 +127,17 @@ pub trait FileChooserExt: 'static { #[doc(alias = "gtk_file_chooser_get_uris")] #[doc(alias = "get_uris")] - fn uris(&self) -> Vec; + fn uris(&self) -> glib::SList; #[doc(alias = "gtk_file_chooser_get_use_preview_label")] #[doc(alias = "get_use_preview_label")] fn uses_preview_label(&self) -> bool; #[doc(alias = "gtk_file_chooser_list_filters")] - fn list_filters(&self) -> Vec; + fn list_filters(&self) -> glib::SList; #[doc(alias = "gtk_file_chooser_list_shortcut_folder_uris")] - fn list_shortcut_folder_uris(&self) -> Vec; + fn list_shortcut_folder_uris(&self) -> glib::SList; #[doc(alias = "gtk_file_chooser_list_shortcut_folders")] fn list_shortcut_folders(&self) -> Vec; @@ -435,7 +435,7 @@ impl> FileChooserExt for O { } } - fn files(&self) -> Vec { + fn files(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_file_chooser_get_files( self.as_ref().to_glib_none().0, @@ -523,7 +523,7 @@ impl> FileChooserExt for O { } } - fn uris(&self) -> Vec { + fn uris(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_file_chooser_get_uris( self.as_ref().to_glib_none().0, @@ -539,7 +539,7 @@ impl> FileChooserExt for O { } } - fn list_filters(&self) -> Vec { + fn list_filters(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_file_chooser_list_filters( self.as_ref().to_glib_none().0, @@ -547,7 +547,7 @@ impl> FileChooserExt for O { } } - fn list_shortcut_folder_uris(&self) -> Vec { + fn list_shortcut_folder_uris(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_file_chooser_list_shortcut_folder_uris( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/flow_box.rs b/gtk/src/auto/flow_box.rs index 42322216f8a8..cb94594c769e 100644 --- a/gtk/src/auto/flow_box.rs +++ b/gtk/src/auto/flow_box.rs @@ -378,7 +378,7 @@ pub trait FlowBoxExt: 'static { #[doc(alias = "gtk_flow_box_get_selected_children")] #[doc(alias = "get_selected_children")] - fn selected_children(&self) -> Vec; + fn selected_children(&self) -> glib::List; #[doc(alias = "gtk_flow_box_get_selection_mode")] #[doc(alias = "get_selection_mode")] @@ -593,7 +593,7 @@ impl> FlowBoxExt for O { unsafe { ffi::gtk_flow_box_get_row_spacing(self.as_ref().to_glib_none().0) } } - fn selected_children(&self) -> Vec { + fn selected_children(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_flow_box_get_selected_children( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/functions.rs b/gtk/src/auto/functions.rs index 51ae64279943..58b0c008b4e0 100644 --- a/gtk/src/auto/functions.rs +++ b/gtk/src/auto/functions.rs @@ -26,7 +26,7 @@ pub fn accel_groups_activate( } #[doc(alias = "gtk_accel_groups_from_object")] -pub fn accel_groups_from_object(object: &impl IsA) -> Vec { +pub fn accel_groups_from_object(object: &impl IsA) -> glib::SList { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_accel_groups_from_object( diff --git a/gtk/src/auto/gesture.rs b/gtk/src/auto/gesture.rs index 9ca4a204fcea..ac69c65e706a 100644 --- a/gtk/src/auto/gesture.rs +++ b/gtk/src/auto/gesture.rs @@ -38,7 +38,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")] @@ -58,7 +58,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_get_window")] #[doc(alias = "get_window")] @@ -168,7 +168,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, @@ -220,7 +220,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/gtk/src/auto/icon_theme.rs b/gtk/src/auto/icon_theme.rs index ffab43dd9e98..cc1c01b78857 100644 --- a/gtk/src/auto/icon_theme.rs +++ b/gtk/src/auto/icon_theme.rs @@ -65,10 +65,10 @@ pub trait IconThemeExt: 'static { fn has_icon(&self, icon_name: &str) -> bool; #[doc(alias = "gtk_icon_theme_list_contexts")] - fn list_contexts(&self) -> Vec; + fn list_contexts(&self) -> glib::List; #[doc(alias = "gtk_icon_theme_list_icons")] - fn list_icons(&self, context: Option<&str>) -> Vec; + fn list_icons(&self, context: Option<&str>) -> glib::List; #[doc(alias = "gtk_icon_theme_load_icon")] fn load_icon( @@ -178,7 +178,7 @@ impl> IconThemeExt for O { } } - fn list_contexts(&self) -> Vec { + fn list_contexts(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_icon_theme_list_contexts( self.as_ref().to_glib_none().0, @@ -186,7 +186,7 @@ impl> IconThemeExt for O { } } - fn list_icons(&self, context: Option<&str>) -> Vec { + fn list_icons(&self, context: Option<&str>) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_icon_theme_list_icons( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/icon_view.rs b/gtk/src/auto/icon_view.rs index e0839d31ed10..80a27b078d44 100644 --- a/gtk/src/auto/icon_view.rs +++ b/gtk/src/auto/icon_view.rs @@ -532,7 +532,7 @@ pub trait IconViewExt: 'static { #[doc(alias = "gtk_icon_view_get_selected_items")] #[doc(alias = "get_selected_items")] - fn selected_items(&self) -> Vec; + fn selected_items(&self) -> glib::List; #[doc(alias = "gtk_icon_view_get_selection_mode")] #[doc(alias = "get_selection_mode")] @@ -961,7 +961,7 @@ impl> IconViewExt for O { unsafe { ffi::gtk_icon_view_get_row_spacing(self.as_ref().to_glib_none().0) } } - fn selected_items(&self) -> Vec { + fn selected_items(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_icon_view_get_selected_items( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/list_box.rs b/gtk/src/auto/list_box.rs index 3a8398c30520..db6efab2d647 100644 --- a/gtk/src/auto/list_box.rs +++ b/gtk/src/auto/list_box.rs @@ -332,7 +332,7 @@ pub trait ListBoxExt: 'static { #[doc(alias = "gtk_list_box_get_selected_rows")] #[doc(alias = "get_selected_rows")] - fn selected_rows(&self) -> Vec; + fn selected_rows(&self) -> glib::List; #[doc(alias = "gtk_list_box_get_selection_mode")] #[doc(alias = "get_selection_mode")] @@ -536,7 +536,7 @@ impl> ListBoxExt for O { } } - fn selected_rows(&self) -> Vec { + fn selected_rows(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_list_box_get_selected_rows( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/menu.rs b/gtk/src/auto/menu.rs index 324618583366..64cacd3f950c 100644 --- a/gtk/src/auto/menu.rs +++ b/gtk/src/auto/menu.rs @@ -52,7 +52,7 @@ impl Menu { #[doc(alias = "gtk_menu_get_for_attach_widget")] #[doc(alias = "get_for_attach_widget")] - pub fn for_attach_widget(widget: &impl IsA) -> Vec { + pub fn for_attach_widget(widget: &impl IsA) -> glib::List { skip_assert_initialized!(); unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_menu_get_for_attach_widget( diff --git a/gtk/src/auto/paper_size.rs b/gtk/src/auto/paper_size.rs index 5b6957481b77..36c5a552c610 100644 --- a/gtk/src/auto/paper_size.rs +++ b/gtk/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/gtk/src/auto/places_sidebar.rs b/gtk/src/auto/places_sidebar.rs index 209071c215a1..652589934459 100644 --- a/gtk/src/auto/places_sidebar.rs +++ b/gtk/src/auto/places_sidebar.rs @@ -145,7 +145,7 @@ impl PlacesSidebar { } #[doc(alias = "gtk_places_sidebar_list_shortcuts")] - pub fn list_shortcuts(&self) -> Vec { + pub fn list_shortcuts(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_places_sidebar_list_shortcuts( self.to_glib_none().0, diff --git a/gtk/src/auto/print_settings.rs b/gtk/src/auto/print_settings.rs index f7885c92ac2b..fe4d1e81485e 100644 --- a/gtk/src/auto/print_settings.rs +++ b/gtk/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/gtk/src/auto/radio_button.rs b/gtk/src/auto/radio_button.rs index 8ff3177d5a1d..c49ca932c103 100644 --- a/gtk/src/auto/radio_button.rs +++ b/gtk/src/auto/radio_button.rs @@ -387,7 +387,7 @@ impl RadioButtonBuilder { pub trait RadioButtonExt: 'static { #[doc(alias = "gtk_radio_button_get_group")] #[doc(alias = "get_group")] - fn group(&self) -> Vec; + fn group(&self) -> glib::SList; #[doc(alias = "gtk_radio_button_join_group")] fn join_group(&self, group_source: Option<&impl IsA>); @@ -397,7 +397,7 @@ pub trait RadioButtonExt: 'static { } impl> RadioButtonExt for O { - fn group(&self) -> Vec { + fn group(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_radio_button_get_group( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/radio_menu_item.rs b/gtk/src/auto/radio_menu_item.rs index 561dc44dcbe2..2ade3be9a2bf 100644 --- a/gtk/src/auto/radio_menu_item.rs +++ b/gtk/src/auto/radio_menu_item.rs @@ -378,7 +378,7 @@ impl RadioMenuItemBuilder { pub trait RadioMenuItemExt: 'static { #[doc(alias = "gtk_radio_menu_item_get_group")] #[doc(alias = "get_group")] - fn group(&self) -> Vec; + fn group(&self) -> glib::SList; #[doc(alias = "gtk_radio_menu_item_join_group")] fn join_group(&self, group_source: Option<&impl IsA>); @@ -388,7 +388,7 @@ pub trait RadioMenuItemExt: 'static { } impl> RadioMenuItemExt for O { - fn group(&self) -> Vec { + fn group(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_radio_menu_item_get_group( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/radio_tool_button.rs b/gtk/src/auto/radio_tool_button.rs index 53a31f6d46a2..6855a684a1a2 100644 --- a/gtk/src/auto/radio_tool_button.rs +++ b/gtk/src/auto/radio_tool_button.rs @@ -355,11 +355,11 @@ impl RadioToolButtonBuilder { pub trait RadioToolButtonExt: 'static { #[doc(alias = "gtk_radio_tool_button_get_group")] #[doc(alias = "get_group")] - fn group(&self) -> Vec; + fn group(&self) -> glib::SList; } impl> RadioToolButtonExt for O { - fn group(&self) -> Vec { + fn group(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_radio_tool_button_get_group( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/recent_chooser.rs b/gtk/src/auto/recent_chooser.rs index 2116b76af126..f91a3b4d399e 100644 --- a/gtk/src/auto/recent_chooser.rs +++ b/gtk/src/auto/recent_chooser.rs @@ -41,7 +41,7 @@ pub trait RecentChooserExt: 'static { #[doc(alias = "gtk_recent_chooser_get_items")] #[doc(alias = "get_items")] - fn items(&self) -> Vec; + fn items(&self) -> glib::List; #[doc(alias = "gtk_recent_chooser_get_limit")] #[doc(alias = "get_limit")] @@ -77,10 +77,10 @@ pub trait RecentChooserExt: 'static { #[doc(alias = "gtk_recent_chooser_get_uris")] #[doc(alias = "get_uris")] - fn uris(&self) -> Vec; + fn uris(&self) -> glib::StrV; #[doc(alias = "gtk_recent_chooser_list_filters")] - fn list_filters(&self) -> Vec; + fn list_filters(&self) -> glib::SList; #[doc(alias = "gtk_recent_chooser_remove_filter")] fn remove_filter(&self, filter: &RecentFilter); @@ -198,7 +198,7 @@ impl> RecentChooserExt for O { } } - fn items(&self) -> Vec { + fn items(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_recent_chooser_get_items( self.as_ref().to_glib_none().0, @@ -266,7 +266,7 @@ impl> RecentChooserExt for O { } } - fn uris(&self) -> Vec { + fn uris(&self) -> glib::StrV { unsafe { let mut length = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_full_num( @@ -280,7 +280,7 @@ impl> RecentChooserExt for O { } } - fn list_filters(&self) -> Vec { + fn list_filters(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_recent_chooser_list_filters( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/recent_info.rs b/gtk/src/auto/recent_info.rs index fad6c946c24e..33413eef2a81 100644 --- a/gtk/src/auto/recent_info.rs +++ b/gtk/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/gtk/src/auto/recent_manager.rs b/gtk/src/auto/recent_manager.rs index ca0203a47598..54e1b3b55726 100644 --- a/gtk/src/auto/recent_manager.rs +++ b/gtk/src/auto/recent_manager.rs @@ -90,7 +90,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; @@ -138,7 +138,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/gtk/src/auto/selection_data.rs b/gtk/src/auto/selection_data.rs index 726dd1f36ec9..328a1506ce1e 100644 --- a/gtk/src/auto/selection_data.rs +++ b/gtk/src/auto/selection_data.rs @@ -62,7 +62,7 @@ impl SelectionData { #[doc(alias = "gtk_selection_data_get_targets")] #[doc(alias = "get_targets")] - pub fn targets(&self) -> Option> { + pub fn targets(&self) -> Option> { unsafe { let mut targets = ptr::null_mut(); let mut n_atoms = mem::MaybeUninit::uninit(); @@ -90,7 +90,7 @@ impl SelectionData { #[doc(alias = "gtk_selection_data_get_uris")] #[doc(alias = "get_uris")] - pub fn uris(&self) -> Vec { + pub fn uris(&self) -> glib::StrV { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gtk_selection_data_get_uris( self.to_glib_none().0, diff --git a/gtk/src/auto/size_group.rs b/gtk/src/auto/size_group.rs index f491af9c7fad..0bd5feb5e0b2 100644 --- a/gtk/src/auto/size_group.rs +++ b/gtk/src/auto/size_group.rs @@ -83,7 +83,7 @@ pub trait SizeGroupExt: 'static { #[doc(alias = "gtk_size_group_get_widgets")] #[doc(alias = "get_widgets")] - fn widgets(&self) -> Vec; + fn widgets(&self) -> glib::SList; #[doc(alias = "gtk_size_group_remove_widget")] fn remove_widget(&self, widget: &impl IsA); @@ -109,7 +109,7 @@ impl> SizeGroupExt for O { unsafe { from_glib(ffi::gtk_size_group_get_mode(self.as_ref().to_glib_none().0)) } } - fn widgets(&self) -> Vec { + fn widgets(&self) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gtk_size_group_get_widgets( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/style_context.rs b/gtk/src/auto/style_context.rs index ca9e6d29df0f..433f0d8a0546 100644 --- a/gtk/src/auto/style_context.rs +++ b/gtk/src/auto/style_context.rs @@ -209,7 +209,7 @@ pub trait StyleContextExt: 'static { fn has_class(&self, class_name: &str) -> bool; #[doc(alias = "gtk_style_context_list_classes")] - fn list_classes(&self) -> Vec; + fn list_classes(&self) -> glib::List; #[doc(alias = "gtk_style_context_lookup_color")] fn lookup_color(&self, color_name: &str) -> Option; @@ -451,7 +451,7 @@ impl> StyleContextExt for O { } } - fn list_classes(&self) -> Vec { + fn list_classes(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_style_context_list_classes( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/text_buffer.rs b/gtk/src/auto/text_buffer.rs index 2cc854d4415d..c1f3bd4fea7a 100644 --- a/gtk/src/auto/text_buffer.rs +++ b/gtk/src/auto/text_buffer.rs @@ -173,7 +173,7 @@ pub trait TextBufferExt: 'static { #[doc(alias = "gtk_text_buffer_get_deserialize_formats")] #[doc(alias = "get_deserialize_formats")] - fn deserialize_formats(&self) -> Vec; + fn deserialize_formats(&self) -> glib::PtrSlice; #[doc(alias = "gtk_text_buffer_get_end_iter")] #[doc(alias = "get_end_iter")] @@ -236,7 +236,7 @@ pub trait TextBufferExt: 'static { #[doc(alias = "gtk_text_buffer_get_serialize_formats")] #[doc(alias = "get_serialize_formats")] - fn serialize_formats(&self) -> Vec; + fn serialize_formats(&self) -> glib::PtrSlice; #[doc(alias = "gtk_text_buffer_get_slice")] #[doc(alias = "get_slice")] @@ -637,7 +637,7 @@ impl> TextBufferExt for O { } } - fn deserialize_formats(&self) -> Vec { + fn deserialize_formats(&self) -> glib::PtrSlice { unsafe { let mut n_formats = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_container_num( @@ -806,7 +806,7 @@ impl> TextBufferExt for O { } } - fn serialize_formats(&self) -> Vec { + fn serialize_formats(&self) -> glib::PtrSlice { unsafe { let mut n_formats = mem::MaybeUninit::uninit(); let ret = FromGlibContainer::from_glib_container_num( diff --git a/gtk/src/auto/text_child_anchor.rs b/gtk/src/auto/text_child_anchor.rs index d6f777dd370a..232bbd5455f8 100644 --- a/gtk/src/auto/text_child_anchor.rs +++ b/gtk/src/auto/text_child_anchor.rs @@ -38,7 +38,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::List; } impl> TextChildAnchorExt for O { @@ -50,7 +50,7 @@ impl> TextChildAnchorExt for O { } } - fn widgets(&self) -> Vec { + fn widgets(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_text_child_anchor_get_widgets( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/text_iter.rs b/gtk/src/auto/text_iter.rs index 25374c86cb22..b78a9355f7fd 100644 --- a/gtk/src/auto/text_iter.rs +++ b/gtk/src/auto/text_iter.rs @@ -567,7 +567,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, @@ -600,7 +600,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, @@ -621,7 +621,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/gtk/src/auto/tree_selection.rs b/gtk/src/auto/tree_selection.rs index 3efd75459fca..01f09fe66eb2 100644 --- a/gtk/src/auto/tree_selection.rs +++ b/gtk/src/auto/tree_selection.rs @@ -41,7 +41,7 @@ pub trait TreeSelectionExt: 'static { #[doc(alias = "gtk_tree_selection_get_selected_rows")] #[doc(alias = "get_selected_rows")] - fn selected_rows(&self) -> (Vec, TreeModel); + fn selected_rows(&self) -> (glib::List, TreeModel); #[doc(alias = "gtk_tree_selection_get_tree_view")] #[doc(alias = "get_tree_view")] @@ -134,7 +134,7 @@ impl> TreeSelectionExt for O { } } - fn selected_rows(&self) -> (Vec, TreeModel) { + fn selected_rows(&self) -> (glib::List, TreeModel) { unsafe { let mut model = ptr::null_mut(); let ret = diff --git a/gtk/src/auto/tree_view.rs b/gtk/src/auto/tree_view.rs index e9488f7edd25..4a2f993c74da 100644 --- a/gtk/src/auto/tree_view.rs +++ b/gtk/src/auto/tree_view.rs @@ -512,7 +512,7 @@ pub trait TreeViewExt: 'static { #[doc(alias = "gtk_tree_view_get_columns")] #[doc(alias = "get_columns")] - fn columns(&self) -> Vec; + fn columns(&self) -> glib::List; #[doc(alias = "gtk_tree_view_get_cursor")] #[doc(alias = "get_cursor")] @@ -1190,7 +1190,7 @@ impl> TreeViewExt for O { } } - 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/gtk/src/auto/versions.txt b/gtk/src/auto/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/gtk/src/auto/versions.txt +++ b/gtk/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977) diff --git a/gtk/src/auto/widget.rs b/gtk/src/auto/widget.rs index d2c1153a8c5e..be247278dbd4 100644 --- a/gtk/src/auto/widget.rs +++ b/gtk/src/auto/widget.rs @@ -542,13 +542,13 @@ pub trait WidgetExt: 'static { fn keynav_failed(&self, direction: DirectionType) -> bool; #[doc(alias = "gtk_widget_list_accel_closures")] - fn list_accel_closures(&self) -> Vec; + fn list_accel_closures(&self) -> glib::List; #[doc(alias = "gtk_widget_list_action_prefixes")] fn list_action_prefixes(&self) -> Vec; #[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); @@ -2280,7 +2280,7 @@ impl> WidgetExt for O { } } - fn list_accel_closures(&self) -> Vec { + fn list_accel_closures(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_widget_list_accel_closures( self.as_ref().to_glib_none().0, @@ -2296,7 +2296,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/gtk/src/auto/widget_path.rs b/gtk/src/auto/widget_path.rs index 3a676ee726fb..7bbe26beefff 100644 --- a/gtk/src/auto/widget_path.rs +++ b/gtk/src/auto/widget_path.rs @@ -197,7 +197,7 @@ impl WidgetPath { } #[doc(alias = "gtk_widget_path_iter_list_classes")] - pub fn iter_list_classes(&self, pos: i32) -> Vec { + pub fn iter_list_classes(&self, pos: i32) -> glib::SList { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_widget_path_iter_list_classes( self.to_glib_none().0, diff --git a/gtk/src/auto/window.rs b/gtk/src/auto/window.rs index 9dbf4f57c4dc..520a87863e49 100644 --- a/gtk/src/auto/window.rs +++ b/gtk/src/auto/window.rs @@ -41,7 +41,7 @@ impl Window { #[doc(alias = "gtk_window_get_default_icon_list")] #[doc(alias = "get_default_icon_list")] - pub fn default_icon_list() -> Vec { + pub fn default_icon_list() -> glib::List { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_window_get_default_icon_list()) @@ -56,7 +56,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()) } } @@ -649,7 +649,7 @@ pub trait GtkWindowExt: 'static { #[doc(alias = "gtk_window_get_icon_list")] #[doc(alias = "get_icon_list")] - fn icon_list(&self) -> Vec; + fn icon_list(&self) -> glib::List; #[doc(alias = "gtk_window_get_icon_name")] #[doc(alias = "get_icon_name")] @@ -1241,7 +1241,7 @@ impl> GtkWindowExt for O { unsafe { from_glib_none(ffi::gtk_window_get_icon(self.as_ref().to_glib_none().0)) } } - fn icon_list(&self) -> Vec { + fn icon_list(&self) -> glib::List { unsafe { FromGlibPtrContainer::from_glib_container(ffi::gtk_window_get_icon_list( self.as_ref().to_glib_none().0, diff --git a/gtk/src/auto/window_group.rs b/gtk/src/auto/window_group.rs index ceccff5dcbb8..46f2bace306e 100644 --- a/gtk/src/auto/window_group.rs +++ b/gtk/src/auto/window_group.rs @@ -44,7 +44,7 @@ pub trait WindowGroupExt: 'static { fn current_grab(&self) -> Option; #[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); @@ -77,7 +77,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/gtk/sys/versions.txt b/gtk/sys/versions.txt index fa2eb53c0968..9b2d3e2c28a1 100644 --- a/gtk/sys/versions.txt +++ b/gtk/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 @ 4eaad6a722bf) +Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a) +from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)