Hi all,

I am currently trying to write a MintMenu-like menu in C. Since it will 
be mainly intended for LXDE I will use menu-cache. However I am 
unfamiliar with menu-cache and would like to know where to start.

I have found menu-cache.h, and based on it's contents I have figured out 
quite a bit on how it should work. However, the following code (which 
compiles fine) seems to fail in getting the root directory:

menu_cache_init(0);
MenuCache* mc = menu_cache_lookup("applications.menu");
MenuCacheDir* dir = menu_cache_get_root_dir(mc);
if(dir==NULL) printf("Could not retrieve root directory\n");

Since menu-cache is undocumented, I have no way of figuring out what I 
am doing wrong. Can anyone shed some light on this?

2noob2banoob

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to