[gnome-menus] [libmenu] Do not count non-inlining submenus as inlining with header
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-menus] [libmenu] Do not count non-inlining submenus as inlining with header
- Date: Thu, 14 Jan 2010 23:47:42 +0000 (UTC)
commit 89309a8bb1e76209e147180a3fe2fd15307d6012
Author: Vincent Untz <vuntz gnome org>
Date: Fri Jan 15 00:02:07 2010 +0100
[libmenu] Do not count non-inlining submenus as inlining with header
When computing if a submenu should be inlined, we use the number of
items in the subsubmenus. It was always assuming that inlining with a
header would be used, because of misuse of the will_inline_header field.
libmenu/gmenu-tree.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index 7fa5ea4..f27315a 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -3664,7 +3664,7 @@ get_real_subdirs_len (GMenuTreeDirectory *directory)
tmp = tmp->next;
- if (subdir->will_inline_header)
+ if (subdir->will_inline_header != G_MAXUINT16)
{
len += get_real_subdirs_len (subdir) + g_slist_length (subdir->entries) + 1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]