[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

bug in ruby/gtk2 examples

Ferenc Engard

12/31/2004 2:10:00 AM

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



1 Answer

Masao Mutoh

12/31/2004 8:16:00 AM

0

Hi,

Applied to CVS. Thanks.

On Fri, 31 Dec 2004 11:09:44 +0900
Ferenc Engard <ferenc@engard.hu> wrote:

> 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
>
>
>