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

gtk3? #2

Open
rubyFeedback opened this issue Feb 4, 2021 · 1 comment
Open

gtk3? #2

rubyFeedback opened this issue Feb 4, 2021 · 1 comment

Comments

@rubyFeedback
Copy link

Hey jrobertson,

Have you tried to get this to work on ruby-gtk3?

It should be possible; I am myself currently rewriting a lot of
ruby-gtk2 code. Wonder if this library could be more
generalized. I haven't yet had the idea to embed SVG
graphics - that is actually useful! We can re-use lots
of SVG graphics in ruby-gtk. Hard to find ruby-gtk
related projects these days. :(

@jrobertson
Copy link
Owner

jrobertson commented Feb 6, 2021

Hello,

I attempted to run the code using gtk3 and observed the the following error:

no such signal: expose-event (GLib::NoSignalError)

I found this Gtk3 tutorial for ruby to be helpful. Having successfully executed the hello world application it's possible to delve further.

A few years ago I switched to using Ruby2d which makes cross-platform 2d applications. I then applied the SVG code to the r2dsvg gem. Here's an example Viewing coloured shapes using the experimental r2dsvg gem.

I still use gtk2svg for a popup notifier application. There's not as much GTK3 documentation for Ruby, that's my biggest issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants