Problems with garcon when reloading menu
nomad at froevel.de
Fri Sep 20 19:28:56 CEST 2013
I'm currently working on a project. Among the libraries used is garcon
(version 0.2.0). At the moment I'm implementing a model for an
application menu and I use garcon to parse the menu structure and to
iterate through the installed applications.
Now I'm facing a problem that I get two different results when parsing
the root menu twice and storing only the visible items and (sub-)menus.
I wrote a small code for testing (see attachment) and the result is
still the same. As soon as the root menu (retrieved by the function
garcon_menu_new_applications) is loaded the second time I get a smaller
number of visibles items.
stephan at froschmobil ~/tmp/garcon-test $ gcc `pkg-config --cflags
garcon-1` `pkg-config --libs garcon-1` -o garcon-test garcon-test.c
stephan at froschmobil ~/tmp/garcon-test $ ./garcon-test
** Message: Run #1: Visible items=149
** Message: Run #2: Visible items=143
It doesn't matter if the root menu is unreffed and re-retrieved with
garcon_menu_new_applications or not (like in the testing code).
Do I misuse the library (I guess so) or is it really a bug?
Thanks for any help.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2770 bytes
Desc: not available
More information about the Xfce4-dev