mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:12:43 +00:00 
			
		
		
		
	LibGUI: Move widget registrations to the corresponding cpp file
This gets a lot of unecessary includes out of Widget.cpp. Doing this didn't work before, but improvements in the C library and using dynamic libraries have likely un-broken it :^). Also, move the registration global object to an anonymous namespace. No reason it has to be an extern symbol.
This commit is contained in:
		
							parent
							
								
									0bf44ac9d8
								
							
						
					
					
						commit
						39908fd569
					
				
					 27 changed files with 59 additions and 56 deletions
				
			
		|  | @ -31,6 +31,10 @@ | |||
| #include <LibGfx/Palette.h> | ||||
| #include <LibGfx/StylePainter.h> | ||||
| 
 | ||||
| REGISTER_WIDGET(GUI, HorizontalSlider) | ||||
| REGISTER_WIDGET(GUI, Slider) | ||||
| REGISTER_WIDGET(GUI, VerticalSlider) | ||||
| 
 | ||||
| namespace GUI { | ||||
| 
 | ||||
| Slider::Slider(Orientation orientation) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Kaster
						Andrew Kaster