mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Reload buttons in SIGHUP
Call xbm_load() from theme_init()
This commit is contained in:
		
							parent
							
								
									2514fb0b99
								
							
						
					
					
						commit
						9af7bd744f
					
				
					 4 changed files with 15 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -10,6 +10,7 @@
 | 
			
		|||
#include "common/log.h"
 | 
			
		||||
#include "common/string-helpers.h"
 | 
			
		||||
#include "theme/theme.h"
 | 
			
		||||
#include "xbm/xbm.h"
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
hex_to_dec(char c)
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +98,7 @@ process_line(char *line)
 | 
			
		|||
	entry(key, value);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
static void
 | 
			
		||||
theme_read(const char *theme_name)
 | 
			
		||||
{
 | 
			
		||||
	FILE *stream = NULL;
 | 
			
		||||
| 
						 | 
				
			
			@ -126,3 +127,10 @@ theme_read(const char *theme_name)
 | 
			
		|||
	free(line);
 | 
			
		||||
	fclose(stream);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
theme_init(struct wlr_renderer *renderer, const char *theme_name)
 | 
			
		||||
{
 | 
			
		||||
	theme_read(theme_name);
 | 
			
		||||
	xbm_load(renderer);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue