Re: Gnome canvas problem on Ubuntu



On Fri, 2005-12-02 at 21:49 -0500, muppet wrote:

GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion
`g_type_from_name (name) == 0' failed at ./beziertest.pl line 19.
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ugh.  That works on linux, but i don't know how portable it is or how  
reliable it is.  Anybody have a better idea?

What about this?

In gnomecanvasperl_canvas_path_def_get_type you call

  g_type_from_name ("GnomeCanvasPathDef")

to see if there's already a type registered with that name.  If so, you
just return it.  If not, you go ahead and register the custom type.

-- 
Bye,
-Torsten




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]