[gnome-menus] Revert "gmenu-tree: Respect Exclude for allocations"
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus] Revert "gmenu-tree: Respect Exclude for allocations"
- Date: Tue, 30 Apr 2013 16:36:05 +0000 (UTC)
commit fa97ec61ea4c0f781d837110b16889e30c6e105e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Apr 30 12:36:00 2013 -0400
Revert "gmenu-tree: Respect Exclude for allocations"
This reverts commit f0d35aba1e1aa8a30d6a3ccd0fdfe8385f346d19.
This is against the spec.
libmenu/gmenu-tree.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libmenu/gmenu-tree.c b/libmenu/gmenu-tree.c
index 5e70e3e..091a719 100644
--- a/libmenu/gmenu-tree.c
+++ b/libmenu/gmenu-tree.c
@@ -3413,6 +3413,7 @@ process_layout (GMenuTree *tree,
GMenuTreeDirectory *directory;
DesktopEntrySet *entry_pool;
DesktopEntrySet *entries;
+ DesktopEntrySet *allocated_set;
DesktopEntrySet *excluded_set;
gboolean deleted;
gboolean only_unallocated;
@@ -3431,6 +3432,7 @@ process_layout (GMenuTree *tree,
only_unallocated = FALSE;
entries = desktop_entry_set_new ();
+ allocated_set = desktop_entry_set_new ();
if (tree->flags & GMENU_TREE_FLAGS_INCLUDE_EXCLUDED)
excluded_set = desktop_entry_set_new ();
@@ -3483,6 +3485,7 @@ process_layout (GMenuTree *tree,
if (rule_set != NULL)
{
desktop_entry_set_union (entries, rule_set);
+ desktop_entry_set_union (allocated_set, rule_set);
if (excluded_set != NULL)
desktop_entry_set_subtract (excluded_set, rule_set);
desktop_entry_set_unref (rule_set);
@@ -3606,7 +3609,9 @@ process_layout (GMenuTree *tree,
directory->only_unallocated = only_unallocated;
if (!directory->only_unallocated)
- desktop_entry_set_union (allocated, entries);
+ desktop_entry_set_union (allocated, allocated_set);
+
+ desktop_entry_set_unref (allocated_set);
if (directory->directory_entry)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]