[gnome-globalmenu] Fix the disappared submenu.



commit bf85f7340c988ae372150c11d3bcb2f9e45483a0
Author: Yu Feng <rainwoodman gmail com>
Date:   Wed Dec 9 13:28:20 2009 -0500

    Fix the disappared submenu.
    
    It is a problem in parser.
    I believe the problem is introduced when I was
    batch replacing stuff manually late at night.

 libserver/parser.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libserver/parser.vala b/libserver/parser.vala
index 8d0898b..c05dc89 100644
--- a/libserver/parser.vala
+++ b/libserver/parser.vala
@@ -85,7 +85,7 @@ public class Gnomenu.Parser {
 					 * aka, we are at
 					 * <menu><item><MENU>*/
 					var item = state.get_item();
-					item.has_sub_shell = true;
+					state.item_has_sub_shell = true;
 					/* nested the menu, change state*/
 					stack.push_tail(new State(item.sub_shell));
 				}
@@ -181,6 +181,8 @@ public class Gnomenu.Parser {
 			case "item":
 				if(!state.item_has_sub_shell) {
 					state.get_item().has_sub_shell = false;
+				} else {
+					state.get_item().has_sub_shell = true;
 				}
 				state.advance();
 			break;



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