Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unstable super_calback's list for g_vfs_register_uri_scheme #701

Merged
merged 1 commit into from Jan 22, 2019

Conversation

Projects
None yet
3 participants
@EPashkin
Copy link
Member

EPashkin commented Jan 22, 2019

Gir sometimes swap boxes for gio's g_vfs_unregister_uri_scheme

--- a/src/auto/vfs.rs
+++ b/src/auto/vfs.rs
@@ -121,8 +121,8 @@ impl<O: IsA<Vfs>> VfsExt for O {
             let _callback: Box_<Option<P>> = Box_::from_raw(data as *mut _);
         }
         let destroy_call7 = Some(parse_name_destroy_func::<P, R> as _);
+        let super_callback1: Box_<Option<R>> = parse_name_func_data;
         let super_callback0: Box_<Option<P>> = uri_func_data;
-        let super_callback1: Box_<Option<R>> = parse_name_func_data;
         unsafe {

cc @GuillaumeGomez, @sdroege

@GuillaumeGomez

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented Jan 22, 2019

👍

1 similar comment
@sdroege

This comment has been minimized.

Copy link
Member

sdroege commented Jan 22, 2019

👍

@EPashkin EPashkin merged commit cfbc40d into gtk-rs:master Jan 22, 2019

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@EPashkin EPashkin deleted the EPashkin:replace_hashmap branch Jan 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.