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

Commit e351fda

Browse files
authored
Merge pull request #695 from gtk-rs/bilelmoussaoui/copy-types
Auto generate with fixed slice of copy types
2 parents bbb808a + d2c721b commit e351fda

File tree

18 files changed

+46
-46
lines changed

18 files changed

+46
-46
lines changed

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 @ 7ca0cbfc850e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)
1+
Generated by gir (https://github.com/gtk-rs/gir @ e1c90d705644)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 898f6c1fb177)

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 @ 7ca0cbfc850e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)
1+
Generated by gir (https://github.com/gtk-rs/gir @ e1c90d705644)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 898f6c1fb177)

gdk/src/atom.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ impl<'a> ToGlibPtrMut<'a, *mut ffi::GdkAtom> for Atom {
7979
}
8080
}
8181

82-
impl<'a> ToGlibContainerFromSlice<'a, *mut ffi::GdkAtom> for &'a Atom {
82+
impl<'a> ToGlibContainerFromSlice<'a, *mut ffi::GdkAtom> for Atom {
8383
type Storage = (
84-
Vec<Stash<'a, ffi::GdkAtom, &'a Atom>>,
84+
Vec<Stash<'a, ffi::GdkAtom, Atom>>,
8585
Option<Vec<ffi::GdkAtom>>,
8686
);
8787

88-
fn to_glib_none_from_slice(t: &'a [&'a Atom]) -> (*mut ffi::GdkAtom, Self::Storage) {
88+
fn to_glib_none_from_slice(t: &'a [Atom]) -> (*mut ffi::GdkAtom, Self::Storage) {
8989
skip_assert_initialized!();
9090

9191
let v: Vec<_> = t.iter().map(|s| s.to_glib_none()).collect();
@@ -95,7 +95,7 @@ impl<'a> ToGlibContainerFromSlice<'a, *mut ffi::GdkAtom> for &'a Atom {
9595
(v_ptr.as_ptr() as *mut ffi::GdkAtom, (v, Some(v_ptr)))
9696
}
9797

98-
fn to_glib_container_from_slice(t: &'a [&'a Atom]) -> (*mut ffi::GdkAtom, Self::Storage) {
98+
fn to_glib_container_from_slice(t: &'a [Atom]) -> (*mut ffi::GdkAtom, Self::Storage) {
9999
skip_assert_initialized!();
100100

101101
let v: Vec<_> = t.iter().map(|s| s.to_glib_none()).collect();
@@ -114,20 +114,20 @@ impl<'a> ToGlibContainerFromSlice<'a, *mut ffi::GdkAtom> for &'a Atom {
114114
(v_ptr, (v, None))
115115
}
116116

117-
fn to_glib_full_from_slice(_: &[&'a Atom]) -> *mut ffi::GdkAtom {
117+
fn to_glib_full_from_slice(_: &[Atom]) -> *mut ffi::GdkAtom {
118118
skip_assert_initialized!();
119119

120120
unimplemented!()
121121
}
122122
}
123123

124-
impl<'a> ToGlibContainerFromSlice<'a, *const ffi::GdkAtom> for &'a Atom {
124+
impl<'a> ToGlibContainerFromSlice<'a, *const ffi::GdkAtom> for Atom {
125125
type Storage = (
126-
Vec<Stash<'a, ffi::GdkAtom, &'a Atom>>,
126+
Vec<Stash<'a, ffi::GdkAtom, Atom>>,
127127
Option<Vec<ffi::GdkAtom>>,
128128
);
129129

130-
fn to_glib_none_from_slice(t: &'a [&'a Atom]) -> (*const ffi::GdkAtom, Self::Storage) {
130+
fn to_glib_none_from_slice(t: &'a [Atom]) -> (*const ffi::GdkAtom, Self::Storage) {
131131
skip_assert_initialized!();
132132

133133
let v: Vec<_> = t.iter().map(|s| s.to_glib_none()).collect();
@@ -137,7 +137,7 @@ impl<'a> ToGlibContainerFromSlice<'a, *const ffi::GdkAtom> for &'a Atom {
137137
(v_ptr.as_ptr() as *const ffi::GdkAtom, (v, Some(v_ptr)))
138138
}
139139

140-
fn to_glib_container_from_slice(t: &'a [&'a Atom]) -> (*const ffi::GdkAtom, Self::Storage) {
140+
fn to_glib_container_from_slice(t: &'a [Atom]) -> (*const ffi::GdkAtom, Self::Storage) {
141141
skip_assert_initialized!();
142142

143143
let v: Vec<_> = t.iter().map(|s| s.to_glib_none()).collect();
@@ -156,7 +156,7 @@ impl<'a> ToGlibContainerFromSlice<'a, *const ffi::GdkAtom> for &'a Atom {
156156
(v_ptr, (v, None))
157157
}
158158

159-
fn to_glib_full_from_slice(_: &[&'a Atom]) -> *const ffi::GdkAtom {
159+
fn to_glib_full_from_slice(_: &[Atom]) -> *const ffi::GdkAtom {
160160
skip_assert_initialized!();
161161

162162
unimplemented!()

gdk/src/auto/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ impl Display {
273273
}
274274

275275
#[doc(alias = "gdk_display_store_clipboard")]
276-
pub fn store_clipboard(&self, clipboard_window: &Window, time_: u32, targets: &[&Atom]) {
276+
pub fn store_clipboard(&self, clipboard_window: &Window, time_: u32, targets: &[Atom]) {
277277
let n_targets = targets.len() as i32;
278278
unsafe {
279279
ffi::gdk_display_store_clipboard(

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 @ 7ca0cbfc850e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)
1+
Generated by gir (https://github.com/gtk-rs/gir @ e1c90d705644)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 898f6c1fb177)

gdk/src/drag_context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl DragContext {
9898
}
9999

100100
#[doc(alias = "gdk_drag_begin")]
101-
pub fn drag_begin(window: &Window, targets: &[&Atom]) -> Option<DragContext> {
101+
pub fn drag_begin(window: &Window, targets: &[Atom]) -> Option<DragContext> {
102102
skip_assert_initialized!();
103103
unsafe {
104104
from_glib_full(ffi::gdk_drag_begin(
@@ -112,7 +112,7 @@ impl DragContext {
112112
pub fn drag_begin_for_device<P: IsA<Device>>(
113113
window: &Window,
114114
device: &P,
115-
targets: &[&Atom],
115+
targets: &[Atom],
116116
) -> Option<DragContext> {
117117
skip_assert_initialized!();
118118
unsafe {
@@ -130,7 +130,7 @@ impl DragContext {
130130
pub fn drag_begin_from_point<P: IsA<Device>>(
131131
window: &Window,
132132
device: &P,
133-
targets: &[&Atom],
133+
targets: &[Atom],
134134
x_root: i32,
135135
y_root: i32,
136136
) -> Option<DragContext> {

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 @ 7ca0cbfc850e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)
1+
Generated by gir (https://github.com/gtk-rs/gir @ e1c90d705644)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 898f6c1fb177)

gdkwayland/src/wayland_window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ glib::wrapper! {
1414

1515
impl WaylandWindow {
1616
#[doc(alias = "gdk_wayland_selection_add_targets")]
17-
pub fn selection_add_targets(&self, selection: &Atom, targets: &[&Atom]) {
17+
pub fn selection_add_targets(&self, selection: &Atom, targets: &[Atom]) {
1818
unsafe {
1919
ffi::gdk_wayland_selection_add_targets(
2020
self.to_glib_none().0,

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 @ 7ca0cbfc850e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)
1+
Generated by gir (https://github.com/gtk-rs/gir @ e1c90d705644)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 898f6c1fb177)

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 @ 7ca0cbfc850e)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18)
1+
Generated by gir (https://github.com/gtk-rs/gir @ e1c90d705644)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 898f6c1fb177)

0 commit comments

Comments
 (0)