[BUG] GladeXML::BUFFER

Hi,

if you want to create widgets from a GladeXML::BUFFER it gives you the
following error message:

[email protected]:~/Desktop$ ruby rubydatei.rb
/usr/local/lib/site_ruby/1.8/libglade2.rb:85:in readlines': can't convert nil into String (TypeError) from /usr/local/lib/site_ruby/1.8/libglade2.rb:85:inbuild_names’
from /usr/local/lib/site_ruby/1.8/libglade2.rb:55:in
widget_names' from /usr/local/lib/site_ruby/1.8/libglade2.rb:97:inguard_sources_from_gc’
from rubydatei.rb:18:in initialize' from rubydatei.rb:18:innew’
from rubydatei.rb:18

Here is the example program:

#!/usr/bin/ruby

require ‘libglade2’
require ‘gtk2’

class Win < Gtk::Window
idata = ’

True
0.5
0.5
0
0

glade = GladeXML.new idata, ‘image’, nil, GladeXML::BUFFER
image = glade[‘image’]
self.add image
self.default_size 200, 200
end

win = Win.new
win.show_all
Gtk.main


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Hi,

On Tue, 16 Jan 2007 22:28:31 +0100
Detlef R. [email protected] wrote:

Hi,

if you want to create widgets from a GladeXML::BUFFER it gives you the
following error message:

Fixed. Thanks.


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Am Sonntag, den 21.01.2007, 01:01 +0900 schrieb Masao M.:

Fixed. Thanks.

Thanks for the fast Fix!


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs