Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Regenerate gir for returned collections #815

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions atk/src/auto/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub trait TextExt: 'static {
coord_type: CoordType,
x_clip_type: TextClipType,
y_clip_type: TextClipType,
) -> Vec<TextRange>;
) -> glib::PtrSlice<TextRange>;

#[doc(alias = "atk_text_get_caret_offset")]
#[doc(alias = "get_caret_offset")]
Expand Down Expand Up @@ -169,7 +169,7 @@ impl<O: IsA<Text>> TextExt for O {
coord_type: CoordType,
x_clip_type: TextClipType,
y_clip_type: TextClipType,
) -> Vec<TextRange> {
) -> glib::PtrSlice<TextRange> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::atk_text_get_bounded_ranges(
self.as_ref().to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions atk/src/auto/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Range>;
fn sub_ranges(&self) -> glib::SList<Range>;

#[doc(alias = "atk_value_get_value_and_text")]
#[doc(alias = "get_value_and_text")]
Expand Down Expand Up @@ -119,7 +119,7 @@ impl<O: IsA<Value>> ValueExt for O {
unsafe { from_glib_full(ffi::atk_value_get_range(self.as_ref().to_glib_none().0)) }
}

fn sub_ranges(&self) -> Vec<Range> {
fn sub_ranges(&self) -> glib::SList<Range> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::atk_value_get_sub_ranges(
self.as_ref().to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions atk/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 2 additions & 2 deletions atk/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 4 additions & 4 deletions gdk/src/auto/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ pub trait DeviceExt: 'static {
fn window_at_position_double(&self) -> (Option<Window>, f64, f64);

#[doc(alias = "gdk_device_list_axes")]
fn list_axes(&self) -> Vec<Atom>;
fn list_axes(&self) -> glib::List<Atom>;

#[doc(alias = "gdk_device_list_slave_devices")]
fn list_slave_devices(&self) -> Vec<Device>;
fn list_slave_devices(&self) -> glib::List<Device>;

#[doc(alias = "gdk_device_set_axis_use")]
fn set_axis_use(&self, index_: u32, use_: AxisUse);
Expand Down Expand Up @@ -364,15 +364,15 @@ impl<O: IsA<Device>> DeviceExt for O {
}
}

fn list_axes(&self) -> Vec<Atom> {
fn list_axes(&self) -> glib::List<Atom> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_device_list_axes(
self.as_ref().to_glib_none().0,
))
}
}

fn list_slave_devices(&self) -> Vec<Device> {
fn list_slave_devices(&self) -> glib::List<Device> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_device_list_slave_devices(
self.as_ref().to_glib_none().0,
Expand Down
2 changes: 1 addition & 1 deletion gdk/src/auto/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Display {
}

#[doc(alias = "gdk_display_list_seats")]
pub fn list_seats(&self) -> Vec<Seat> {
pub fn list_seats(&self) -> glib::List<Seat> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_display_list_seats(
self.to_glib_none().0,
Expand Down
2 changes: 1 addition & 1 deletion gdk/src/auto/display_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl DisplayManager {
}

#[doc(alias = "gdk_display_manager_list_displays")]
pub fn list_displays(&self) -> Vec<Display> {
pub fn list_displays(&self) -> glib::SList<Display> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_display_manager_list_displays(
self.to_glib_none().0,
Expand Down
2 changes: 1 addition & 1 deletion gdk/src/auto/drag_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl DragContext {
}

#[doc(alias = "gdk_drag_context_list_targets")]
pub fn list_targets(&self) -> Vec<Atom> {
pub fn list_targets(&self) -> glib::List<Atom> {
unsafe {
FromGlibPtrContainer::from_glib_none(ffi::gdk_drag_context_list_targets(
self.to_glib_none().0,
Expand Down
6 changes: 3 additions & 3 deletions gdk/src/auto/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Screen {

#[doc(alias = "gdk_screen_get_toplevel_windows")]
#[doc(alias = "get_toplevel_windows")]
pub fn toplevel_windows(&self) -> Vec<Window> {
pub fn toplevel_windows(&self) -> glib::List<Window> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_screen_get_toplevel_windows(
self.to_glib_none().0,
Expand All @@ -62,7 +62,7 @@ impl Screen {

#[doc(alias = "gdk_screen_get_window_stack")]
#[doc(alias = "get_window_stack")]
pub fn window_stack(&self) -> Vec<Window> {
pub fn window_stack(&self) -> glib::List<Window> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::gdk_screen_get_window_stack(
self.to_glib_none().0,
Expand All @@ -76,7 +76,7 @@ impl Screen {
}

#[doc(alias = "gdk_screen_list_visuals")]
pub fn list_visuals(&self) -> Vec<Visual> {
pub fn list_visuals(&self) -> glib::List<Visual> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_screen_list_visuals(
self.to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions gdk/src/auto/seat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub trait SeatExt: 'static {

#[doc(alias = "gdk_seat_get_slaves")]
#[doc(alias = "get_slaves")]
fn slaves(&self, capabilities: SeatCapabilities) -> Vec<Device>;
fn slaves(&self, capabilities: SeatCapabilities) -> glib::List<Device>;

#[doc(alias = "gdk_seat_grab")]
fn grab(
Expand Down Expand Up @@ -92,7 +92,7 @@ impl<O: IsA<Seat>> 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<Device> {
fn slaves(&self, capabilities: SeatCapabilities) -> glib::List<Device> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_seat_get_slaves(
self.as_ref().to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions gdk/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -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)
6 changes: 3 additions & 3 deletions gdk/src/auto/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl Window {

#[doc(alias = "gdk_window_get_children")]
#[doc(alias = "get_children")]
pub fn children(&self) -> Vec<Window> {
pub fn children(&self) -> glib::List<Window> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gdk_window_get_children(
self.to_glib_none().0,
Expand All @@ -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<Basic: Pointer>) -> Vec<Window> {
//pub fn children_with_user_data(&self, user_data: /*Unimplemented*/Option<Basic: Pointer>) -> glib::List<Window> {
// unsafe { TODO: call ffi:gdk_window_get_children_with_user_data() }
//}

Expand Down Expand Up @@ -844,7 +844,7 @@ impl Window {
}

#[doc(alias = "gdk_window_peek_children")]
pub fn peek_children(&self) -> Vec<Window> {
pub fn peek_children(&self) -> glib::List<Window> {
unsafe {
FromGlibPtrContainer::from_glib_none(ffi::gdk_window_peek_children(
self.to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions gdk/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 2 additions & 2 deletions gdkx11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 2 additions & 2 deletions gdkx11/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion gir-files
16 changes: 8 additions & 8 deletions gtk/src/auto/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<glib::GString>;
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<glib::GString>;
fn actions_for_accel(&self, accel: &str) -> glib::StrV;

#[doc(alias = "gtk_application_get_active_window")]
#[doc(alias = "get_active_window")]
Expand All @@ -149,7 +149,7 @@ pub trait GtkApplicationExt: 'static {

#[doc(alias = "gtk_application_get_windows")]
#[doc(alias = "get_windows")]
fn windows(&self) -> Vec<Window>;
fn windows(&self) -> glib::List<Window>;

#[doc(alias = "gtk_application_inhibit")]
fn inhibit(
Expand All @@ -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<glib::GString>;
fn list_action_descriptions(&self) -> glib::StrV;

#[doc(alias = "gtk_application_prefers_app_menu")]
fn prefers_app_menu(&self) -> bool;
Expand Down Expand Up @@ -233,7 +233,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
}
}

fn accels_for_action(&self, detailed_action_name: &str) -> Vec<glib::GString> {
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,
Expand All @@ -242,7 +242,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
}
}

fn actions_for_accel(&self, accel: &str) -> Vec<glib::GString> {
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,
Expand Down Expand Up @@ -293,7 +293,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
}
}

fn windows(&self) -> Vec<Window> {
fn windows(&self) -> glib::List<Window> {
unsafe {
FromGlibPtrContainer::from_glib_none(ffi::gtk_application_get_windows(
self.as_ref().to_glib_none().0,
Expand Down Expand Up @@ -326,7 +326,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
}
}

fn list_action_descriptions(&self) -> Vec<glib::GString> {
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,
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/auto/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub trait BuilderExt: 'static {

#[doc(alias = "gtk_builder_get_objects")]
#[doc(alias = "get_objects")]
fn objects(&self) -> Vec<glib::Object>;
fn objects(&self) -> glib::SList<glib::Object>;

#[doc(alias = "gtk_builder_get_translation_domain")]
#[doc(alias = "get_translation_domain")]
Expand Down Expand Up @@ -146,7 +146,7 @@ impl<O: IsA<Builder>> BuilderExt for O {
}
}

fn objects(&self) -> Vec<glib::Object> {
fn objects(&self) -> glib::SList<glib::Object> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gtk_builder_get_objects(
self.as_ref().to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/auto/cell_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CellRenderer>) -> Vec<CellRenderer>;
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> glib::List<CellRenderer>;

#[doc(alias = "gtk_cell_area_get_preferred_height")]
#[doc(alias = "get_preferred_height")]
Expand Down Expand Up @@ -669,7 +669,7 @@ impl<O: IsA<CellArea>> CellAreaExt for O {
}
}

fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> Vec<CellRenderer> {
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> glib::List<CellRenderer> {
unsafe {
FromGlibPtrContainer::from_glib_none(ffi::gtk_cell_area_get_focus_siblings(
self.as_ref().to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/auto/cell_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub trait CellLayoutExt: 'static {

#[doc(alias = "gtk_cell_layout_get_cells")]
#[doc(alias = "get_cells")]
fn cells(&self) -> Vec<CellRenderer>;
fn cells(&self) -> glib::List<CellRenderer>;

#[doc(alias = "gtk_cell_layout_pack_end")]
fn pack_end(&self, cell: &impl IsA<CellRenderer>, expand: bool);
Expand Down Expand Up @@ -92,7 +92,7 @@ impl<O: IsA<CellLayout>> CellLayoutExt for O {
}
}

fn cells(&self) -> Vec<CellRenderer> {
fn cells(&self) -> glib::List<CellRenderer> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gtk_cell_layout_get_cells(
self.as_ref().to_glib_none().0,
Expand Down
4 changes: 2 additions & 2 deletions gtk/src/auto/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Clipboard {
}

#[doc(alias = "gtk_clipboard_wait_for_targets")]
pub fn wait_for_targets(&self) -> Option<Vec<gdk::Atom>> {
pub fn wait_for_targets(&self) -> Option<glib::PtrSlice<gdk::Atom>> {
unsafe {
let mut targets = ptr::null_mut();
let mut n_targets = mem::MaybeUninit::uninit();
Expand All @@ -244,7 +244,7 @@ impl Clipboard {
}

#[doc(alias = "gtk_clipboard_wait_for_uris")]
pub fn wait_for_uris(&self) -> Vec<glib::GString> {
pub fn wait_for_uris(&self) -> glib::StrV {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::gtk_clipboard_wait_for_uris(
self.to_glib_none().0,
Expand Down
8 changes: 4 additions & 4 deletions gtk/src/auto/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ pub trait ContainerExt: 'static {

#[doc(alias = "gtk_container_get_children")]
#[doc(alias = "get_children")]
fn children(&self) -> Vec<Widget>;
fn children(&self) -> glib::List<Widget>;

//#[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<Widget>) -> bool;
//fn focus_chain(&self, focusable_widgets: /*Unimplemented*/glib::List<Widget>) -> bool;

#[doc(alias = "gtk_container_get_focus_child")]
#[doc(alias = "get_focus_child")]
Expand Down Expand Up @@ -259,7 +259,7 @@ impl<O: IsA<Container>> ContainerExt for O {
unsafe { ffi::gtk_container_get_border_width(self.as_ref().to_glib_none().0) }
}

fn children(&self) -> Vec<Widget> {
fn children(&self) -> glib::List<Widget> {
unsafe {
FromGlibPtrContainer::from_glib_container(ffi::gtk_container_get_children(
self.as_ref().to_glib_none().0,
Expand All @@ -268,7 +268,7 @@ impl<O: IsA<Container>> ContainerExt for O {
}

//#[allow(deprecated)]
//fn focus_chain(&self, focusable_widgets: /*Unimplemented*/Vec<Widget>) -> bool {
//fn focus_chain(&self, focusable_widgets: /*Unimplemented*/glib::List<Widget>) -> bool {
// unsafe { TODO: call ffi:gtk_container_get_focus_chain() }
//}

Expand Down
Loading