[PATCH] xfdesktop/menueditor/utils.c
Matthias Eller
matthias.eller at static-void-main.de
Thu Jan 19 09:02:38 CET 2006
Hi,
theres a small bug when writing the xml file of the desktop menu.
If there's a submenu that contais another submenu at its _end_ which
contains some items then there are </menu> missing when saving the setup
because the depth of the path makes 2 (or more) steps at once (because
no items follow the 2nd submenu)
this patch could do the trick. It writes as much </menu> tags as steps
are made back.
greetings
Matthias Eller
49,51c49,54
<
< if (state->last_depth > gtk_tree_path_get_depth (path)) {
< fprintf (state->file_menu, "%s</menu>\n", space);
---
>
> gint i = state->last_depth;
> while( i > gtk_tree_path_get_depth(path))
> {
> i--;
> fprintf (state->file_menu, "%s</menu>\n", g_strnfill(i,'\t'));
834c837
< }
---
> }
More information about the Xfce4-dev
mailing list