Forum: Ruby-Gnome 2 gc for layout.bin_window

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dobai-Pataky Bálint (Guest)
on 2007-01-25 10:55
(Received via mailing list)
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: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?



thanks,
balint
Kouhei S. (Guest)
on 2007-01-25 14:04
(Received via mailing list)
Hi,

In <removed_email_address@domain.invalid>
  "[ruby-gnome2-devel-en] gc for layout.bin_window" on Thu, 25 Jan 2007
10:53:39 +0200,
  Dobai-Pataky Bálint <removed_email_address@domain.invalid> 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...
Dobai-Pataky Bálint (Guest)
on 2007-01-25 15:56
(Received via mailing list)
-------------------------------------------------------------------------
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...
This topic is locked and can not be replied to.