Skip to content
Merged
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
23 changes: 4 additions & 19 deletions gdk-pixbuf/src/auto/pixbuf.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::{ffi, Colorspace, InterpType, PixbufFormat, PixbufRotation};
use glib::{prelude::*, translate::*};
Expand Down Expand Up @@ -213,6 +214,8 @@ impl Pixbuf {
}
}

#[cfg_attr(feature = "v2_44", deprecated = "Since 2.44")]
#[allow(deprecated)]
#[doc(alias = "gdk_pixbuf_new_from_xpm_data")]
#[doc(alias = "new_from_xpm_data")]
pub fn from_xpm_data(data: &[&str]) -> Result<Pixbuf, glib::BoolError> {
Expand Down Expand Up @@ -539,7 +542,7 @@ impl Pixbuf {
//}

//#[doc(alias = "gdk_pixbuf_save_to_buffer")]
//pub fn save_to_buffer(&self, type_: &str, error: Option<&mut glib::Error>, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) -> Option<Vec<u8>> {
//pub fn save_to_buffer(&self, type_: &str, error: &mut glib::Error, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) -> Option<Vec<u8>> {
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_buffer() }
//}

Expand All @@ -563,24 +566,6 @@ impl Pixbuf {
// unsafe { TODO: call ffi:gdk_pixbuf_save_to_stream_async() }
//}

//
//pub fn save_to_stream_future(&self, stream: &(impl IsA<gio::OutputStream> + Clone + 'static), type_: &str, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) -> Pin<Box_<dyn std::future::Future<Output = Result<(), glib::Error>> + 'static>> {

//let stream = stream.clone();
//let type_ = String::from(type_);
//Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| {
// obj.save_to_stream_async(
// &stream,
// &type_,
// Some(cancellable),
// ,
// move |res| {
// send.resolve(res);
// },
// );
//}))
//}

#[doc(alias = "gdk_pixbuf_scale")]
pub fn scale(
&self,
Expand Down
2 changes: 1 addition & 1 deletion gdk-pixbuf/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
4 changes: 4 additions & 0 deletions gdk-pixbuf/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tempfile = "3"
[features]
v2_40 = []
v2_42 = ["v2_40"]
v2_44 = ["v2_42"]

[lib]
name = "gdk_pixbuf_sys"
Expand Down Expand Up @@ -64,6 +65,9 @@ version = "2.40"
[package.metadata.system-deps.gdk_pixbuf_2_0.v2_42]
version = "2.42"

[package.metadata.system-deps.gdk_pixbuf_2_0.v2_44]
version = "2.44"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
Expand Down
2 changes: 1 addition & 1 deletion gdk-pixbuf/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion gio/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion gio/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion gir-files
2 changes: 1 addition & 1 deletion glib/gobject-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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion glib/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion glib/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion graphene/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion graphene/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion pango/src/auto/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub trait FontExt: IsA<Font> + 'static {
#[cfg_attr(docsrs, doc(cfg(feature = "v1_46")))]
#[doc(alias = "pango_font_get_face")]
#[doc(alias = "get_face")]
fn face(&self) -> FontFace {
fn face(&self) -> Option<FontFace> {
unsafe { from_glib_none(ffi::pango_font_get_face(self.as_ref().to_glib_none().0)) }
}

Expand Down
2 changes: 1 addition & 1 deletion pango/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion pango/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion pangocairo/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)
2 changes: 1 addition & 1 deletion pangocairo/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 @ 3fcec321a85e)
from gir-files (https://github.com/gtk-rs/gir-files @ f4cde2ff49b7)
from gir-files (https://github.com/gtk-rs/gir-files @ e9775ea8223a)