mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	rcxml: do not try to use theme Clearlooks-3.4
If no theme is specified in rc.xml, just use built-in theme
This commit is contained in:
		
							parent
							
								
									be27bb30a3
								
							
						
					
					
						commit
						018593c824
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -250,9 +250,6 @@ post_processing(void)
 | 
				
			||||||
		bind("A-F3", "Execute", "bemenu-run");
 | 
							bind("A-F3", "Execute", "bemenu-run");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!rc.theme_name) {
 | 
					 | 
				
			||||||
		rc.theme_name = strdup("Clearlooks-3.4");
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	if (!rc.font_name_activewindow) {
 | 
						if (!rc.font_name_activewindow) {
 | 
				
			||||||
		rc.font_name_activewindow = strdup("sans");
 | 
							rc.font_name_activewindow = strdup("sans");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -178,7 +178,10 @@ theme_read(struct theme *theme, const char *theme_name)
 | 
				
			||||||
		stream = fopen(themerc, "r");
 | 
							stream = fopen(themerc, "r");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (!stream) {
 | 
						if (!stream) {
 | 
				
			||||||
		info("cannot find theme (%s), using built-in", theme_name);
 | 
							if (theme_name) {
 | 
				
			||||||
 | 
								info("cannot find theme (%s), using built-in",
 | 
				
			||||||
 | 
								     theme_name);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		theme_builtin(theme);
 | 
							theme_builtin(theme);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue