GLib-GObject-CRITICAL messages when using a style color accessor

Chisheng Huang <[email protected]> Fri, 25 Apr 2008 12:20:02 -0700 (PDT)
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Hi,

I just noticed that a bunch of "GLib-GObject-CRITICAL" messages flying by in
my slime *inferior-lisp* window when my program was getting a color from a
gtk:style object.  The following code demonstrates the problem:

(let ((w (make-instance 'gtk:window)))
  (gtk:widget-show-all w)
  (gtk:style-mid (gtk:widget-style w)
                  :normal))

(<unknown>:25439): GLib-GObject-CRITICAL **: g_boxed_copy: assertion `G_TYPE_IS_BOXED (boxed_type)' failed

The returned color, #<GDK:COLOR at 0x0>, has a null pointer.

Could someone please look into this?

Best,

-cph

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone