mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	WindowServer+LibGUI: Add per-window progress
Each window now has an associated progress integer that can be updated via the SetWindowProgress IPC call. This can be used by clients to indicate the progress of ongoing tasks. Any number in the range 0 through 100 indicate a progress percentage. Any other number means "no progress"
This commit is contained in:
		
							parent
							
								
									8449f0a15b
								
							
						
					
					
						commit
						1d6ec51bee
					
				
					 12 changed files with 47 additions and 4 deletions
				
			
		|  | @ -537,4 +537,13 @@ void Window::set_parent_window(Window& parent_window) | |||
|     parent_window.add_child_window(*this); | ||||
| } | ||||
| 
 | ||||
| void Window::set_progress(int progress) | ||||
| { | ||||
|     if (m_progress == progress) | ||||
|         return; | ||||
| 
 | ||||
|     m_progress = progress; | ||||
|     WindowManager::the().notify_progress_changed(*this); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling