Pack settings related types into structs
This commit is contained in:
		
							parent
							
								
									c944949e36
								
							
						
					
					
						commit
						a661b2bb85
					
				
							
								
								
									
										2
									
								
								config.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								config.h
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| /* see example dunstrc for additional explanations about these options */ | ||||
| 
 | ||||
| settings_t defaults = { | ||||
| struct settings defaults = { | ||||
| 
 | ||||
| .font = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*", | ||||
| .markup = MARKUP_NO, | ||||
|  | ||||
| @ -19,7 +19,7 @@ | ||||
| #include "utils.h" | ||||
| #include "x11/x.h" | ||||
| 
 | ||||
| settings_t settings; | ||||
| struct settings settings; | ||||
| 
 | ||||
| static void parse_follow_mode(const char *mode) | ||||
| { | ||||
|  | ||||
| @ -26,7 +26,7 @@ struct geometry { | ||||
| 
 | ||||
| }; | ||||
| 
 | ||||
| typedef struct _settings { | ||||
| struct settings { | ||||
|         bool print_notifications; | ||||
|         bool per_monitor_dpi; | ||||
|         enum markup_mode markup; | ||||
| @ -89,9 +89,9 @@ typedef struct _settings { | ||||
|         enum mouse_action mouse_left_click; | ||||
|         enum mouse_action mouse_middle_click; | ||||
|         enum mouse_action mouse_right_click; | ||||
| } settings_t; | ||||
| }; | ||||
| 
 | ||||
| extern settings_t settings; | ||||
| extern struct settings settings; | ||||
| 
 | ||||
| void load_settings(char *cmdline_config_path); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine