From: Ned Konz Date: 2001-08-20T07:37:07+09:00 Subject: [ruby-talk:19996] Re: Ruby/Gtk: caveats/help on use of rbbr.rb On Sunday 19 August 2001 02:56 pm, you wrote: > I am re-evaluating Ruby/Gtk. I assume that the gtk-brows, talked of in the > docs, is really rbbr.rb. I get messages similar to: > > $ ruby rbbr.rb > rbbr.rb:1249:in `main': file gtkwidget.c: line 3242 (gtk_widget_set_state): > assertion `widget != NULL' failed. (Gtk::Error) > from rbbr.rb:1249:in `main' > from rbbr.rb:1255 > > There is no gtkwidget.c in my installation. Does this indicate that > rbbr.rb does not work with ruby-1.6.4 and ruby-gtk-0.25? gtkwidget.c is part of the GTK source distribution, not part of the Ruby gtk stuff. It looks like there is just a bug in rbbr.rb that's causing it to send NULL widgets to gtk_widget_set_state. This is called by set_state, though it's probably being called indirectly (by something inside the GTK libs). I did this, which seemed to help (though it doesn't print any errors...) def self.main window = BrowserWithDocumentViewer.new window.set_title("Ruby Browser + Document Viewer") window.show_all begin Gtk.main rescue STDERR.puts "exception $!" retry end end -- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com