mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
rcxml: set empty variables in post_processing()
Avoid crash if no config file can be found
This commit is contained in:
parent
5122a9be69
commit
e25118d8ec
1 changed files with 7 additions and 1 deletions
|
|
@ -245,8 +245,14 @@ static void post_processing(void)
|
|||
bind("A-Tab", "NextWindow");
|
||||
bind("A-F3", "Execute");
|
||||
}
|
||||
/* TODO: Set all char* variables if NULL */
|
||||
|
||||
if (!rc.theme_name)
|
||||
rc.theme_name = strdup("Clearlooks");
|
||||
if (!rc.font_name_activewindow)
|
||||
rc.font_name_activewindow = strdup("sans");
|
||||
|
||||
if (!rc.font_size_activewindow)
|
||||
rc.font_size_activewindow = 8;
|
||||
set_title_height();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue