mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
main.c: declare theme within main()
This commit is contained in:
parent
de88b69d62
commit
ce73d23127
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,6 @@
|
||||||
#include "menu/menu.h"
|
#include "menu/menu.h"
|
||||||
|
|
||||||
struct rcxml rc = { 0 };
|
struct rcxml rc = { 0 };
|
||||||
struct theme theme = { 0 };
|
|
||||||
|
|
||||||
static const char labwc_usage[] =
|
static const char labwc_usage[] =
|
||||||
"Usage: labwc [-h] [-s <startup-command>] [-c <config-file>] [-v]\n";
|
"Usage: labwc [-h] [-s <startup-command>] [-c <config-file>] [-v]\n";
|
||||||
|
|
@ -76,6 +75,7 @@ main(int argc, char *argv[])
|
||||||
server_init(&server);
|
server_init(&server);
|
||||||
server_start(&server);
|
server_start(&server);
|
||||||
|
|
||||||
|
struct theme theme = { 0 };
|
||||||
theme_init(&theme, server.renderer, rc.theme_name);
|
theme_init(&theme, server.renderer, rc.theme_name);
|
||||||
server.theme = &theme;
|
server.theme = &theme;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue