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

Commit fe44fe7

Browse files
committed
Regenerate gir for returned collections
1 parent 942c0ee commit fe44fe7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+130
-130
lines changed

atk/src/auto/text.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub trait TextExt: 'static {
3838
coord_type: CoordType,
3939
x_clip_type: TextClipType,
4040
y_clip_type: TextClipType,
41-
) -> Vec<TextRange>;
41+
) -> glib::PtrSlice<TextRange>;
4242

4343
#[doc(alias = "atk_text_get_caret_offset")]
4444
#[doc(alias = "get_caret_offset")]
@@ -169,7 +169,7 @@ impl<O: IsA<Text>> TextExt for O {
169169
coord_type: CoordType,
170170
x_clip_type: TextClipType,
171171
y_clip_type: TextClipType,
172-
) -> Vec<TextRange> {
172+
) -> glib::PtrSlice<TextRange> {
173173
unsafe {
174174
FromGlibPtrContainer::from_glib_full(ffi::atk_text_get_bounded_ranges(
175175
self.as_ref().to_glib_none().0,

atk/src/auto/value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub trait ValueExt: 'static {
5050

5151
#[doc(alias = "atk_value_get_sub_ranges")]
5252
#[doc(alias = "get_sub_ranges")]
53-
fn sub_ranges(&self) -> Vec<Range>;
53+
fn sub_ranges(&self) -> glib::SList<Range>;
5454

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

122-
fn sub_ranges(&self) -> Vec<Range> {
122+
fn sub_ranges(&self) -> glib::SList<Range> {
123123
unsafe {
124124
FromGlibPtrContainer::from_glib_full(ffi::atk_value_get_sub_ranges(
125125
self.as_ref().to_glib_none().0,

atk/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)

atk/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)

gdk/src/auto/device.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ pub trait DeviceExt: 'static {
121121
fn window_at_position_double(&self) -> (Option<Window>, f64, f64);
122122

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

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

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

367-
fn list_axes(&self) -> Vec<Atom> {
367+
fn list_axes(&self) -> glib::List<Atom> {
368368
unsafe {
369369
FromGlibPtrContainer::from_glib_container(ffi::gdk_device_list_axes(
370370
self.as_ref().to_glib_none().0,
371371
))
372372
}
373373
}
374374

375-
fn list_slave_devices(&self) -> Vec<Device> {
375+
fn list_slave_devices(&self) -> glib::List<Device> {
376376
unsafe {
377377
FromGlibPtrContainer::from_glib_container(ffi::gdk_device_list_slave_devices(
378378
self.as_ref().to_glib_none().0,

gdk/src/auto/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl Display {
169169
}
170170

171171
#[doc(alias = "gdk_display_list_seats")]
172-
pub fn list_seats(&self) -> Vec<Seat> {
172+
pub fn list_seats(&self) -> glib::List<Seat> {
173173
unsafe {
174174
FromGlibPtrContainer::from_glib_container(ffi::gdk_display_list_seats(
175175
self.to_glib_none().0,

gdk/src/auto/display_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl DisplayManager {
3131
}
3232

3333
#[doc(alias = "gdk_display_manager_list_displays")]
34-
pub fn list_displays(&self) -> Vec<Display> {
34+
pub fn list_displays(&self) -> glib::SList<Display> {
3535
unsafe {
3636
FromGlibPtrContainer::from_glib_container(ffi::gdk_display_manager_list_displays(
3737
self.to_glib_none().0,

gdk/src/auto/drag_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl DragContext {
8181
}
8282

8383
#[doc(alias = "gdk_drag_context_list_targets")]
84-
pub fn list_targets(&self) -> Vec<Atom> {
84+
pub fn list_targets(&self) -> glib::List<Atom> {
8585
unsafe {
8686
FromGlibPtrContainer::from_glib_none(ffi::gdk_drag_context_list_targets(
8787
self.to_glib_none().0,

gdk/src/auto/screen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl Screen {
5252

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

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

7878
#[doc(alias = "gdk_screen_list_visuals")]
79-
pub fn list_visuals(&self) -> Vec<Visual> {
79+
pub fn list_visuals(&self) -> glib::List<Visual> {
8080
unsafe {
8181
FromGlibPtrContainer::from_glib_container(ffi::gdk_screen_list_visuals(
8282
self.to_glib_none().0,

gdk/src/auto/seat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub trait SeatExt: 'static {
4242

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

4747
#[doc(alias = "gdk_seat_grab")]
4848
fn grab(
@@ -92,7 +92,7 @@ impl<O: IsA<Seat>> SeatExt for O {
9292
unsafe { from_glib_none(ffi::gdk_seat_get_pointer(self.as_ref().to_glib_none().0)) }
9393
}
9494

95-
fn slaves(&self, capabilities: SeatCapabilities) -> Vec<Device> {
95+
fn slaves(&self, capabilities: SeatCapabilities) -> glib::List<Device> {
9696
unsafe {
9797
FromGlibPtrContainer::from_glib_container(ffi::gdk_seat_get_slaves(
9898
self.as_ref().to_glib_none().0,

gdk/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)

gdk/src/auto/window.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl Window {
255255

256256
#[doc(alias = "gdk_window_get_children")]
257257
#[doc(alias = "get_children")]
258-
pub fn children(&self) -> Vec<Window> {
258+
pub fn children(&self) -> glib::List<Window> {
259259
unsafe {
260260
FromGlibPtrContainer::from_glib_container(ffi::gdk_window_get_children(
261261
self.to_glib_none().0,
@@ -265,7 +265,7 @@ impl Window {
265265

266266
//#[doc(alias = "gdk_window_get_children_with_user_data")]
267267
//#[doc(alias = "get_children_with_user_data")]
268-
//pub fn children_with_user_data(&self, user_data: /*Unimplemented*/Option<Basic: Pointer>) -> Vec<Window> {
268+
//pub fn children_with_user_data(&self, user_data: /*Unimplemented*/Option<Basic: Pointer>) -> glib::List<Window> {
269269
// unsafe { TODO: call ffi:gdk_window_get_children_with_user_data() }
270270
//}
271271

@@ -844,7 +844,7 @@ impl Window {
844844
}
845845

846846
#[doc(alias = "gdk_window_peek_children")]
847-
pub fn peek_children(&self) -> Vec<Window> {
847+
pub fn peek_children(&self) -> glib::List<Window> {
848848
unsafe {
849849
FromGlibPtrContainer::from_glib_none(ffi::gdk_window_peek_children(
850850
self.to_glib_none().0,

gdk/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)

gdkx11/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)

gdkx11/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 425f84d5af7f)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 4eaad6a722bf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 95ecf2cb6f7a)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ b985117c8977)

gtk/src/auto/application.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ pub trait GtkApplicationExt: 'static {
121121

122122
#[doc(alias = "gtk_application_get_accels_for_action")]
123123
#[doc(alias = "get_accels_for_action")]
124-
fn accels_for_action(&self, detailed_action_name: &str) -> Vec<glib::GString>;
124+
fn accels_for_action(&self, detailed_action_name: &str) -> glib::StrV;
125125

126126
#[doc(alias = "gtk_application_get_actions_for_accel")]
127127
#[doc(alias = "get_actions_for_accel")]
128-
fn actions_for_accel(&self, accel: &str) -> Vec<glib::GString>;
128+
fn actions_for_accel(&self, accel: &str) -> glib::StrV;
129129

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

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

154154
#[doc(alias = "gtk_application_inhibit")]
155155
fn inhibit(
@@ -163,7 +163,7 @@ pub trait GtkApplicationExt: 'static {
163163
fn is_inhibited(&self, flags: ApplicationInhibitFlags) -> bool;
164164

165165
#[doc(alias = "gtk_application_list_action_descriptions")]
166-
fn list_action_descriptions(&self) -> Vec<glib::GString>;
166+
fn list_action_descriptions(&self) -> glib::StrV;
167167

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

236-
fn accels_for_action(&self, detailed_action_name: &str) -> Vec<glib::GString> {
236+
fn accels_for_action(&self, detailed_action_name: &str) -> glib::StrV {
237237
unsafe {
238238
FromGlibPtrContainer::from_glib_full(ffi::gtk_application_get_accels_for_action(
239239
self.as_ref().to_glib_none().0,
@@ -242,7 +242,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
242242
}
243243
}
244244

245-
fn actions_for_accel(&self, accel: &str) -> Vec<glib::GString> {
245+
fn actions_for_accel(&self, accel: &str) -> glib::StrV {
246246
unsafe {
247247
FromGlibPtrContainer::from_glib_full(ffi::gtk_application_get_actions_for_accel(
248248
self.as_ref().to_glib_none().0,
@@ -293,7 +293,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
293293
}
294294
}
295295

296-
fn windows(&self) -> Vec<Window> {
296+
fn windows(&self) -> glib::List<Window> {
297297
unsafe {
298298
FromGlibPtrContainer::from_glib_none(ffi::gtk_application_get_windows(
299299
self.as_ref().to_glib_none().0,
@@ -326,7 +326,7 @@ impl<O: IsA<Application>> GtkApplicationExt for O {
326326
}
327327
}
328328

329-
fn list_action_descriptions(&self) -> Vec<glib::GString> {
329+
fn list_action_descriptions(&self) -> glib::StrV {
330330
unsafe {
331331
FromGlibPtrContainer::from_glib_full(ffi::gtk_application_list_action_descriptions(
332332
self.as_ref().to_glib_none().0,

gtk/src/auto/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub trait BuilderExt: 'static {
7878

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

8383
#[doc(alias = "gtk_builder_get_translation_domain")]
8484
#[doc(alias = "get_translation_domain")]
@@ -146,7 +146,7 @@ impl<O: IsA<Builder>> BuilderExt for O {
146146
}
147147
}
148148

149-
fn objects(&self) -> Vec<glib::Object> {
149+
fn objects(&self) -> glib::SList<glib::Object> {
150150
unsafe {
151151
FromGlibPtrContainer::from_glib_container(ffi::gtk_builder_get_objects(
152152
self.as_ref().to_glib_none().0,

gtk/src/auto/cell_area.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub trait CellAreaExt: 'static {
180180

181181
#[doc(alias = "gtk_cell_area_get_focus_siblings")]
182182
#[doc(alias = "get_focus_siblings")]
183-
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> Vec<CellRenderer>;
183+
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> glib::List<CellRenderer>;
184184

185185
#[doc(alias = "gtk_cell_area_get_preferred_height")]
186186
#[doc(alias = "get_preferred_height")]
@@ -669,7 +669,7 @@ impl<O: IsA<CellArea>> CellAreaExt for O {
669669
}
670670
}
671671

672-
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> Vec<CellRenderer> {
672+
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> glib::List<CellRenderer> {
673673
unsafe {
674674
FromGlibPtrContainer::from_glib_none(ffi::gtk_cell_area_get_focus_siblings(
675675
self.as_ref().to_glib_none().0,

gtk/src/auto/cell_layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub trait CellLayoutExt: 'static {
3535

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

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

95-
fn cells(&self) -> Vec<CellRenderer> {
95+
fn cells(&self) -> glib::List<CellRenderer> {
9696
unsafe {
9797
FromGlibPtrContainer::from_glib_container(ffi::gtk_cell_layout_get_cells(
9898
self.as_ref().to_glib_none().0,

gtk/src/auto/clipboard.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl Clipboard {
218218
}
219219

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

246246
#[doc(alias = "gtk_clipboard_wait_for_uris")]
247-
pub fn wait_for_uris(&self) -> Vec<glib::GString> {
247+
pub fn wait_for_uris(&self) -> glib::StrV {
248248
unsafe {
249249
FromGlibPtrContainer::from_glib_full(ffi::gtk_clipboard_wait_for_uris(
250250
self.to_glib_none().0,

gtk/src/auto/container.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ pub trait ContainerExt: 'static {
6767

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

7272
//#[cfg_attr(feature = "v3_24", deprecated = "Since 3.24")]
7373
//#[allow(deprecated)]
7474
//#[doc(alias = "gtk_container_get_focus_chain")]
7575
//#[doc(alias = "get_focus_chain")]
76-
//fn focus_chain(&self, focusable_widgets: /*Unimplemented*/Vec<Widget>) -> bool;
76+
//fn focus_chain(&self, focusable_widgets: /*Unimplemented*/glib::List<Widget>) -> bool;
7777

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

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

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

0 commit comments

Comments
 (0)