Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.
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
2 changes: 1 addition & 1 deletion gir-files
9 changes: 0 additions & 9 deletions src/auto/pixbuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,63 +533,54 @@ impl<O: IsA<Pixbuf> + IsA<glib::object::Object>> PixbufExt for O {

unsafe extern "C" fn notify_bits_per_sample_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_colorspace_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_has_alpha_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_height_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_n_channels_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_pixel_bytes_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_pixels_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_rowstride_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn notify_width_trampoline<P>(this: *mut ffi::GdkPixbuf, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Pixbuf> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&Pixbuf::from_glib_borrow(this).downcast_unchecked())
}
4 changes: 0 additions & 4 deletions src/auto/pixbuf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,28 +170,24 @@ impl<O: IsA<PixbufLoader> + IsA<glib::object::Object>> PixbufLoaderExt for O {

unsafe extern "C" fn area_prepared_trampoline<P>(this: *mut ffi::GdkPixbufLoader, f: glib_ffi::gpointer)
where P: IsA<PixbufLoader> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&PixbufLoader::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn area_updated_trampoline<P>(this: *mut ffi::GdkPixbufLoader, x: libc::c_int, y: libc::c_int, width: libc::c_int, height: libc::c_int, f: glib_ffi::gpointer)
where P: IsA<PixbufLoader> {
callback_guard!();
let f: &&(Fn(&P, i32, i32, i32, i32) + 'static) = transmute(f);
f(&PixbufLoader::from_glib_borrow(this).downcast_unchecked(), x, y, width, height)
}

unsafe extern "C" fn closed_trampoline<P>(this: *mut ffi::GdkPixbufLoader, f: glib_ffi::gpointer)
where P: IsA<PixbufLoader> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&PixbufLoader::from_glib_borrow(this).downcast_unchecked())
}

unsafe extern "C" fn size_prepared_trampoline<P>(this: *mut ffi::GdkPixbufLoader, width: libc::c_int, height: libc::c_int, f: glib_ffi::gpointer)
where P: IsA<PixbufLoader> {
callback_guard!();
let f: &&(Fn(&P, i32, i32) + 'static) = transmute(f);
f(&PixbufLoader::from_glib_borrow(this).downcast_unchecked(), width, height)
}
1 change: 0 additions & 1 deletion src/auto/pixbuf_simple_anim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ impl<O: IsA<PixbufSimpleAnim> + IsA<glib::object::Object>> PixbufSimpleAnimExt f

unsafe extern "C" fn notify_loop_trampoline<P>(this: *mut ffi::GdkPixbufSimpleAnim, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<PixbufSimpleAnim> {
callback_guard!();
let f: &&(Fn(&P) + 'static) = transmute(f);
f(&PixbufSimpleAnim::from_glib_borrow(this).downcast_unchecked())
}
6 changes: 2 additions & 4 deletions src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
All files in this directory
were generated by gir (https://github.com/gtk-rs/gir @ 5ec9961)
from gir-files (https://github.com/gtk-rs/gir-files @ 3fde76b)
DO NOT EDIT THEM
Generated by gir (https://github.com/gtk-rs/gir @ 9eab494)
from gir-files (https://github.com/gtk-rs/gir-files @ 47c69e6)
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ pub use glib::{
Value,
};

#[macro_use]
mod rt;

mod auto;

mod animation;
Expand Down
4 changes: 0 additions & 4 deletions src/pixbuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ impl Pixbuf {
let user_data: Box<Box<R>> = Box::new(Box::new(callback));
unsafe extern "C" fn new_from_stream_async_trampoline<R: FnOnce(Result<Pixbuf, Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer)
{
callback_guard!();
let mut error = ptr::null_mut();
let ptr = ffi::gdk_pixbuf_new_from_stream_finish(res, &mut error);
let result = if error.is_null() {
Expand Down Expand Up @@ -152,7 +151,6 @@ impl Pixbuf {
let user_data: Box<Box<R>> = Box::new(Box::new(callback));
unsafe extern "C" fn new_from_stream_at_scale_async_trampoline<R: FnOnce(Result<Pixbuf, Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer)
{
callback_guard!();
let mut error = ptr::null_mut();
let ptr = ffi::gdk_pixbuf_new_from_stream_finish(res, &mut error);
let result = if error.is_null() {
Expand Down Expand Up @@ -237,7 +235,6 @@ impl Pixbuf {
let user_data: Box<Box<Q>> = Box::new(Box::new(callback));
unsafe extern "C" fn get_file_info_async_trampoline<Q: FnOnce(Result<Option<(PixbufFormat, i32, i32)>, Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer)
{
callback_guard!();
let mut error = ptr::null_mut();
let mut width = mem::uninitialized();
let mut height = mem::uninitialized();
Expand Down Expand Up @@ -312,7 +309,6 @@ impl Pixbuf {
let user_data: Box<Box<R>> = Box::new(Box::new(callback));
unsafe extern "C" fn save_to_streamv_async_trampoline<R: FnOnce(Result<(), Error>) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer)
{
callback_guard!();
let mut error = ptr::null_mut();
let _ = ffi::gdk_pixbuf_save_to_stream_finish(res, &mut error);
let result = if error.is_null() {
Expand Down
17 changes: 0 additions & 17 deletions src/rt.rs

This file was deleted.