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

Commit 8b9a864

Browse files
auto-generate slice of copy types functions
1 parent 67f3a18 commit 8b9a864

File tree

15 files changed

+32
-32
lines changed

15 files changed

+32
-32
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/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/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)

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)

gtk/src/auto/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub trait BuilderExt: 'static {
103103
#[doc(alias = "gtk_builder_value_from_string")]
104104
fn value_from_string(
105105
&self,
106-
pspec: &glib::ParamSpec,
106+
pspec: impl AsRef<glib::ParamSpec>,
107107
string: &str,
108108
) -> Result<glib::Value, glib::Error>;
109109

@@ -198,15 +198,15 @@ impl<O: IsA<Builder>> BuilderExt for O {
198198

199199
fn value_from_string(
200200
&self,
201-
pspec: &glib::ParamSpec,
201+
pspec: impl AsRef<glib::ParamSpec>,
202202
string: &str,
203203
) -> Result<glib::Value, glib::Error> {
204204
unsafe {
205205
let mut value = glib::Value::uninitialized();
206206
let mut error = ptr::null_mut();
207207
let is_ok = ffi::gtk_builder_value_from_string(
208208
self.as_ref().to_glib_none().0,
209-
pspec.to_glib_none().0,
209+
pspec.as_ref().to_glib_none().0,
210210
string.to_glib_none().0,
211211
value.to_glib_none_mut().0,
212212
&mut error,

0 commit comments

Comments
 (0)