Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Replace obsolete conversion functions #97

Merged
merged 1 commit into from Feb 8, 2016
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pixbuf/mod.rs
Expand Up @@ -161,7 +161,7 @@ impl Pixbuf {
}

pub fn get_has_alpha(&self) -> bool {
unsafe { ::glib::to_bool(ffi::gdk_pixbuf_get_has_alpha(self.to_glib_none().0)) }
unsafe { from_glib(ffi::gdk_pixbuf_get_has_alpha(self.to_glib_none().0)) }
}

pub fn get_bits_per_sample(&self) -> i32 {
Expand Down
2 changes: 1 addition & 1 deletion src/rgba.rs
Expand Up @@ -79,7 +79,7 @@ impl RGBA for GdkRGBA {

fn parse(&mut self, spec: &str) -> bool {
unsafe {
::glib::to_bool(ffi::gdk_rgba_parse(self, spec.to_glib_none().0))
from_glib(ffi::gdk_rgba_parse(self, spec.to_glib_none().0))
}
}

Expand Down