Re: Any doc or sample code for using Libgnome-menu2 ?
- From: Vincent Untz <vuntz gnome org>
- To: "Liu, Raymond" <raymond liu intel com>
- Cc: "desktop-devel-list gnome org" <desktop-devel-list gnome org>
- Subject: Re: Any doc or sample code for using Libgnome-menu2 ?
- Date: Mon, 10 Nov 2008 13:44:13 +0100
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 <vuntz gnome org>
[...]
* 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]