You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like develop some Nautilus extension in Ruby (not in C or Python). I wonder if I could do that with ruby-gir-ffi. I think I could use Nautilus objects but I don't know if I would need some kind of C-to-Ruby glue code.
Your project is great! Thank you!
Greetings.
The text was updated successfully, but these errors were encountered:
I've taken a look at how the Python extensions for Nautilus work, and my conclusion is as follows:
Some glue code is needed because Nautilus finds extensions by loading C libraries. But, like the Python case, this can be generic for all Ruby Nautilus extensions.
This glue code will load the Ruby runtime and the Ruby file.
The classes defined in the Ruby file will need to have a GType associated with them. GirFFI should be able to handle this, but I haven't tried it yet.
Nautilus will have to be told about the classes defined in the file. This can be done by the glue code, and probably also from Ruby.
The Nautilus classes can be used from GirFFI, at least for Nautilus 3.
The biggest hurdle would probably be creating the glue code. That's definitely something for a separate project.
I'd like develop some Nautilus extension in Ruby (not in C or Python). I wonder if I could do that with ruby-gir-ffi. I think I could use Nautilus objects but I don't know if I would need some kind of C-to-Ruby glue code.
Your project is great! Thank you!
Greetings.
The text was updated successfully, but these errors were encountered: