mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	menu: minor refactoring to increase readability
This commit is contained in:
		
							parent
							
								
									a08a6c4bd4
								
							
						
					
					
						commit
						241e7de2b1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -620,7 +620,6 @@ menu_hide_submenu(const char *id)
 | 
			
		|||
static void
 | 
			
		||||
init_rootmenu(struct server *server)
 | 
			
		||||
{
 | 
			
		||||
	parse_xml("menu.xml", server);
 | 
			
		||||
	struct menu *menu = menu_get_by_id("root-menu");
 | 
			
		||||
 | 
			
		||||
	/* Default menu if no menu.xml found */
 | 
			
		||||
| 
						 | 
				
			
			@ -685,6 +684,7 @@ init_windowmenu(struct server *server)
 | 
			
		|||
void
 | 
			
		||||
menu_init(struct server *server)
 | 
			
		||||
{
 | 
			
		||||
	parse_xml("menu.xml", server);
 | 
			
		||||
	init_rootmenu(server);
 | 
			
		||||
	init_windowmenu(server);
 | 
			
		||||
	post_processing(server);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue