Le lundi 10 novembre 2008, à 15:03 +0800, Liu, Raymond a écrit :
> Hi
> I am trying to use libgnome-menu2 for desktop file info retrieve.
> However I could not find any API reference or sample code on web or in
> the source package.
> Can anyone share some information on this to me?
>
> I did try to build and run the util/gnome-menu-spec-test, But it failed
> with:
>
> $ ./gnome-menu-spec-test
>
> (lt-gnome-menu-spec-test:26922): GLib-GObject-CRITICAL **:
> /build/buildd/glib2.0-2.16.6/gobject/gtype.c:2248: initialization assertion
> failed, use IA__g_type_init() prior to this function
Which version of gnome-menus is this? It should have been fixed with:
2008-04-11 Vincent Untz <[EMAIL PROTECTED]>
[...]
* libmenu/menu-monitor.c: (register_monitor): call g_type_init() once
since we're using gio in this file and so GObjects. Since
libgnome-menus doesn't export any GObject stuff, an app can't know that
g_type_init() has to be called and we have to do it.
This is in 2.22.2 and 2.24.x. If you're using 2.22.1 or lower, then this is
expected, I guess.
Vincent
--
Les gens heureux ne sont pas pressés.
_______________________________________________
desktop-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/desktop-devel-list