Forum: Ruby-Gnome 2 Cancel button to close window

Ad99e25aa2b714d1017fa2c755aa7a7f?d=identicon&s=25 andru mccracken (andru)
on 2013-12-15 10:12
I may have something wrong here, but I just went to the latest visual
ruby gem, and now my modal windows won't close. Same problem with the
ChildWindow example.
I've tried to follow the instructions on visualruby.org to get the
latest visual-ruby.
Here's what i've got.
ruby 1.9.3 (no change)
GTK+ 3.6.7
gem install visualruby (shows 1.0.13)
I'm running on Windows XP.
D9ba13de4e62fcabffa4403731434e42?d=identicon&s=25 Eric C. (eric_c65)
on 2013-12-15 19:56
Hi:

I think the problem is that you're using gtk3.  visualruby uses gtk2.
Try changing that, and see if it fixes it.  I know that the ChildWindo
demo works.

Eric
D9ba13de4e62fcabffa4403731434e42?d=identicon&s=25 Eric C. (eric_c65)
on 2013-12-15 20:18
Hi Andru:

I think I found the problem.  Glade must now install gtk3+ by default.
So to install glade w/ gtk2:

Remove your current glade install (this may not be necessary).

sudo apt-get install -y glade-gtk2 libgtksourceview2.0-dev
gtk2-engines-pixbuf

In your Tools->Project Settings menu, the command line for glade should
be glade-gtk2 for linux.

If anyone is using a Mac, please let me know if I need to update my
install instructions for Mac too.

Eric
Ad99e25aa2b714d1017fa2c755aa7a7f?d=identicon&s=25 andru mccracken (andru)
on 2013-12-15 21:08
Hi Eric,
Thanks a tonne, I am on windows so I am downloading the binary GTK+
2.24.10.
I will let you know.
A
D9ba13de4e62fcabffa4403731434e42?d=identicon&s=25 Eric C. (eric_c65)
on 2013-12-15 22:44
I think everything gets installed automatically using the download on
Visualruby.net.  Uninstall your current version, and go to the Download
page for the correct file.

E
Ad99e25aa2b714d1017fa2c755aa7a7f?d=identicon&s=25 andru mccracken (andru)
on 2013-12-15 22:46
So I misunderstood a bit there! That didn't work.
Do you have a sense of how you would specify gtk2 for windows?
D9ba13de4e62fcabffa4403731434e42?d=identicon&s=25 Eric C. (eric_c65)
on 2013-12-16 02:56
On visualruby.net, click on "Download"

On the windows instructions, you'll see a link to this file:

glade3-3.6.7-with-GTK+.exe

click on it, and you should be able to download and install bundled
version of glade and gtk2.

Hope that helps,
Eric
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.