[nautilus-actions] Iterates from subitems of source menu



commit 6f720ecf5cae24be33b851b3150f6e3e37707a08
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Sep 10 19:31:03 2013 +0200

    Iterates from subitems of source menu
    
    This fix a bug reported by Christopher Compagnon, which stays since 3.2.0 version.
    This doesn't improve the dynamic sublist capability of N-A which is yet to be proved.

 ChangeLog                          |    6 ++++++
 src/plugin-menu/nautilus-actions.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 598203d..709c291 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-10 Pierre Wieser <pwieser trychlos org>
+
+       * src/plugin-menu/nautilus-actions.c (build_nautilus_menu_rec):
+       Iterates through subitems of the source menu as they have not been
+       duplucated yet (reported by Christopher Compagnon).
+
 2013-09-07 Pierre Wieser <pwieser trychlos org>
 
        * src/nact/nact-main-toolbar.c (nact_main_toolbar_activate):
diff --git a/src/plugin-menu/nautilus-actions.c b/src/plugin-menu/nautilus-actions.c
index d9211db..e64194a 100644
--- a/src/plugin-menu/nautilus-actions.c
+++ b/src/plugin-menu/nautilus-actions.c
@@ -567,9 +567,9 @@ build_nautilus_menu_rec( GList *tree, guint target, GList *selection, NATokens *
                 * the 'submenu' menu of nautilusMenuItem's is attached to the returned
                 * 'item'
                 */
-               if( NA_IS_OBJECT_MENU( item )){
+               if( NA_IS_OBJECT_MENU( it->data )){
 
-                       subitems = na_object_get_items( item );
+                       subitems = na_object_get_items( NA_OBJECT( it->data ));
                        g_debug( "%s: menu has %d items", thisfn, g_list_length( subitems ));
 
                        submenu = build_nautilus_menu_rec( subitems, target, selection, tokens );


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