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

Espen S Johnsen <[email protected]> 30 Apr 2008 22:11:08 +0200
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Chisheng Huang <[email protected]> writes:

> 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.

Strange, I do not have this problem. What does (gtk:widget-style w) return?

-- 
Espen

-------------------------------------------------------------------------
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