[librsvg/wip/aruiz/rust-pixbuf-loader: 59/69] pixbuf-loader: use gboolean instead of custom c_bool type alias




commit 83656a18281ab2b0bbde9836d2caafc09c2db914
Author: Alberto Ruiz <aruiz redhat com>
Date:   Fri Aug 5 22:07:58 2022 +0100

    pixbuf-loader: use gboolean instead of custom c_bool type alias
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/722>

 gdk-pixbuf-loader/src/lib.rs | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk-pixbuf-loader/src/lib.rs b/gdk-pixbuf-loader/src/lib.rs
index ebbbedd1f..2e2c4b68c 100644
--- a/gdk-pixbuf-loader/src/lib.rs
+++ b/gdk-pixbuf-loader/src/lib.rs
@@ -6,7 +6,7 @@ use gdk_pixbuf_sys::{
     GDK_PIXBUF_FORMAT_THREADSAFE,
 };
 
-use glib_sys::GError;
+use glib_sys::{GError, gboolean};
 use gobject_sys::GObject;
 use libc::{c_char, c_int, c_uint};
 
@@ -15,9 +15,6 @@ use gio::MemoryInputStream;
 use glib::Bytes;
 use librsvg::Loader;
 
-#[allow(non_camel_case_types)]
-type c_bool = c_int;
-
 use cstr::cstr;
 
 struct SvgContext {
@@ -58,7 +55,7 @@ unsafe extern "C" fn load_increment(
     buffer: *const u8,
     size: c_uint,
     error: *mut *mut GError,
-) -> c_bool {
+) -> gboolean {
     if error != null_mut() {
         *error = null_mut();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]