[gnome-menus] [libmenu] Fix miscalulation for inlining when inline_header = true
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-menus] [libmenu] Fix miscalulation for inlining when inline_header = true
- Date: Thu, 14 Jan 2010 23:47:27 +0000 (UTC)
commit cda451cec61345d357cbc26e5a5dfd102f476ea5
Author: Vincent Untz <vuntz gnome org>
Date: Thu Jan 14 21:29:42 2010 +0100
[libmenu] Fix miscalulation for inlining when inline_header = true
When inline_header = true for a subdirectory, the length of the content
of the parent directory was miscomputed: instead of adding the length of
the subdirectory, it was just replacing the current length with the
length of the subdirectory.
Also fix a typo in a comment
libmenu/gmenu-tree.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index e03c146..1a65375 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -3690,7 +3690,7 @@ get_real_subdirs_len (GMenuTreeDirectory *directory)
if (subdir->will_inline_header)
{
- len = get_real_subdirs_len (subdir) + g_slist_length (subdir->entries) + 1;
+ len += get_real_subdirs_len (subdir) + g_slist_length (subdir->entries) + 1;
}
else
len += 1;
@@ -3834,7 +3834,7 @@ preprocess_layout_info (GMenuTree *tree,
*/
layout_info = get_layout_info (directory);
tmp = layout_info;
- /* see comment below about Menuname to undersand why we leave the loop if
+ /* see comment below about Menuname to understand why we leave the loop if
* last_subdir is NULL */
while (tmp != NULL && last_subdir != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]