bug in ruby/gtk2 examples

F

Ferenc Engard

Hi all!

I use ruby/gtk2 from the ruby-gtk2-0.10.0-2-i386-msvcrt-1.8.zip package.
There are many samples in this distrib, one of these is
ruby\samples\ruby-gnome2\gtk\gtk-demo. In this app, in the dialog.rb the
dialog buttons are created incorrectly.

Here is the diff to correct:

--- dialog.orig.rb 2004-08-09 01:06:22.000000000 +0200
+++ dialog.rb 2004-12-31 03:07:52.431412800 +0100
@@ -87,12 +87,11 @@
self,
Gtk::Dialog::MODAL |
Gtk::Dialog::DESTROY_WITH_PARENT,
- [
- Gtk::Stock::OK,
- Gtk::Dialog::RESPONSE_OK,
- "_Non-stock Button",
- Gtk::Dialog::RESPONSE_CANCEL,
- ])
+ [Gtk::Stock::OK,
+ Gtk::Dialog::RESPONSE_OK],
+ ["_Non-stock Button",
+ Gtk::Dialog::RESPONSE_CANCEL]
+ )

hbox = Gtk::HBox.new(false, 0)
hbox.set_border_width(8)

Bye:
Ferenc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top