Kouhei Sutou wrote:
Hi,

In <45B87013.6050506@gmail.com>
  "[ruby-gnome2-devel-en] gc for layout.bin_window" on Thu, 25 Jan 2007 10:53:39 +0200,
  Dobai-Pataky Bálint <dpblnt@gmail.com> wrote:

  
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:in `initialize': failed to initialize (RuntimeError)
        from examples/layout_gc.rb:6:in `new'
        from examples/layout_gc.rb:6


am i doing this wrong?
    

You need to realize lay before you use lay.bin_window.
  
crossed my mind, but haven't tried it first :(
it works now,
thanks

balint