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:
ialog::MODAL |
Gtk:
ialog:
ESTROY_WITH_PARENT,
- [
- Gtk::Stock::OK,
- Gtk:
ialog::RESPONSE_OK,
- "_Non-stock Button",
- Gtk:
ialog::RESPONSE_CANCEL,
- ])
+ [Gtk::Stock::OK,
+ Gtk:
ialog::RESPONSE_OK],
+ ["_Non-stock Button",
+ Gtk:
ialog::RESPONSE_CANCEL]
+ )
hbox = Gtk::HBox.new(false, 0)
hbox.set_border_width(8)
Bye:
Ferenc
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:
Gtk:
- [
- Gtk::Stock::OK,
- Gtk:
- "_Non-stock Button",
- Gtk:
- ])
+ [Gtk::Stock::OK,
+ Gtk:
+ ["_Non-stock Button",
+ Gtk:
+ )
hbox = Gtk::HBox.new(false, 0)
hbox.set_border_width(8)
Bye:
Ferenc