mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	action: add "Close" to close top-most view
This commit is contained in:
		
							parent
							
								
									9fa783e7b4
								
							
						
					
					
						commit
						eaed1a3cab
					
				
					 4 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,10 @@ action(struct server *server, const char *action, const char *command)
 | 
			
		|||
{
 | 
			
		||||
	if (!action)
 | 
			
		||||
		return;
 | 
			
		||||
	if (!strcasecmp(action, "Debug")) {
 | 
			
		||||
	if (!strcasecmp(action, "Close")) {
 | 
			
		||||
		struct view *view = topmost_mapped_view(server);
 | 
			
		||||
		view->impl->close(view);
 | 
			
		||||
	} else if (!strcasecmp(action, "Debug")) {
 | 
			
		||||
		/* nothing */
 | 
			
		||||
	} else if (!strcasecmp(action, "Execute")) {
 | 
			
		||||
		struct buf cmd;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue