[gnome-builder] egg-menu-manager: fix removing of items



commit fee6922e28c34ccd5cf2ffee72de672fdc7b1097
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sat Mar 5 18:36:58 2016 +0100

    egg-menu-manager: fix removing of items

 contrib/egg/egg-menu-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-menu-manager.c b/contrib/egg/egg-menu-manager.c
index f7000bf..7f2dc6a 100644
--- a/contrib/egg/egg-menu-manager.c
+++ b/contrib/egg/egg-menu-manager.c
@@ -466,7 +466,8 @@ egg_menu_manager_remove (EggMenuManager *self,
                                                i,
                                                EGG_MENU_ATTRIBUTE_MERGE_ID,
                                                "u", &item_merge_id))
-            g_menu_remove (menu, i);
+            if (item_merge_id == merge_id)
+              g_menu_remove (menu, i);
         }
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]