From: Conrad Schneiker Date: 2000-12-12T16:30:28+09:00 Subject: [ruby-talk:7071] Re: Gtk widget color Conrad Schneiker wrote: # Nathaniel Talbott writes: # # # Help! I can't seem to change the color of a gtk widget dynamically # within # # Ruby. I have no trouble changing the color initially, by setting the # proper # # Style property before the widget is shown, but nothing seems to happen # if I # # change the style after the widget is shown. # # # # I'd appreciate any suggestions you might have; I'm just about at the end # of # # my rope. # # FWIW, here are my suggestions: # # (1) Identify the version of Ruby and OS you are using. # (2) In case no one else can answer this (e.g. perhaps it's just a # bug or maybe it involves something that hasn't been completely # implemented yet), always consider a cc: to the appropriate # developer(s) unless you know that they follow the English mail list. And I should have added: (3) Show the code (unless it's 100s of lines). If I had tried to run your code under Windows NT 4 with ruby 1.6.1 (2000-10-05) [i386-cygwin], I would have encountered the following error first: # ruby smart.rb smart.rb:53:in `require': dlopen: Win32 error 126 - /Program Files/Ruby/lib/ruby /site_ruby/1.6/i386-cygwin/gtk.so (LoadError) from smart.rb:53 This occurrs at the first executable code (i.e. require 'gtk'). Is this a version error due to a switch from Ruby 1.4 to Ruby 1.6? (I installed the Gimp, and put the /Program Files/Common Files/GNU dll directory on my PATH, so as to pick up the gtk, gdk, glib, and gdk_imlib *-1.3.dll's.) Conrad Schneiker (This note is unofficial and subject to improvement without notice.)