mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
Support a very simple root-menu
This commit is contained in:
parent
f49a3a0395
commit
dc5d1ab976
9 changed files with 255 additions and 36 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include "labwc.h"
|
||||
#include "theme/theme.h"
|
||||
#include "xbm/xbm.h"
|
||||
#include "menu/menu.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#include <pango/pangocairo.h>
|
||||
|
|
@ -61,6 +62,10 @@ main(int argc, char *argv[])
|
|||
theme_read(rc.theme_name);
|
||||
xbm_load(server.renderer);
|
||||
|
||||
struct menu menu = { 0 };
|
||||
menu_init(&server, &menu);
|
||||
server.rootmenu = &menu;
|
||||
|
||||
session_autostart_init();
|
||||
if (startup_cmd) {
|
||||
spawn_async_no_shell(startup_cmd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue