mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	LibGUI+Applications: Give SettingsWindow tabs a string ID
This gives us a convenient way to refer to them, which will be used in the following commit.
This commit is contained in:
		
							parent
							
								
									4d2e18fb07
								
							
						
					
					
						commit
						ded5ba1f87
					
				
					 9 changed files with 35 additions and 34 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| /*
 | ||||
|  * Copyright (c) 2020, Hüseyin Aslıtürk <asliturk@hotmail.com> | ||||
|  * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org> | ||||
|  * Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org> | ||||
|  * | ||||
|  * SPDX-License-Identifier: BSD-2-Clause | ||||
|  */ | ||||
|  | @ -31,7 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
| 
 | ||||
|     auto window = TRY(GUI::SettingsWindow::create("Keyboard Settings")); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
|     auto keyboard_settings_widget = TRY(window->add_tab<KeyboardSettingsWidget>("Keyboard")); | ||||
|     auto keyboard_settings_widget = TRY(window->add_tab<KeyboardSettingsWidget>("Keyboard", "keyboard")); | ||||
| 
 | ||||
|     window->on_active_window_change = [&](bool is_active_window) { | ||||
|         keyboard_settings_widget->window_activated(is_active_window); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins