Gc for layout.bin_window

hi,

lay=Gtk::Layout.new
gc=Gdk::GC.new(lay.bin_window)

gives

/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
Gdk-CRITICAL **:gdk_gc_new: assertion drawable != NULL' failed examples/layout_gc.rb:6:ininitialize’: failed to initialize
(RuntimeError)
from examples/layout_gc.rb:6:in `new’
from examples/layout_gc.rb:6

am i doing this wrong?

thanks,
balint

Hi,

In [email protected]
“[ruby-gnome2-devel-en] gc for layout.bin_window” on Thu, 25 Jan 2007
10:53:39 +0200,
Dobai-Pataky Bálint [email protected] wrote:

am i doing this wrong?

You need to realize lay before you use lay.bin_window.

Thanks,

kou


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


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