diff options
Diffstat (limited to 'qemu-gtk.c')
-rw-r--r-- | qemu-gtk.c | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -416,6 +416,7 @@ static int conn_connect(struct qemu_conn *conn, char *name, char *dest) static const GtkActionEntry entries[] = { { + /* --- menu bar --- */ .name = "FileMenu", .label = "_File", },{ @@ -428,22 +429,33 @@ static const GtkActionEntry entries[] = { .name = "VMMenu", .label = "_VM", },{ + .name = "DevicesMenu", + .label = "_Devices", + },{ .name = "HelpMenu", .label = "_Help", + },{ + /* --- sub menus --- */ + .name = "MediaChangeSubMenu", + .label = "_Change media", },{ + + /* --- file menu --- */ .name = "Close", .stock_id = GTK_STOCK_CLOSE, .label = "_Close", .accelerator = "<control>Q", .callback = G_CALLBACK(menu_cb_close), - },{ + + /* --- input menu --- */ .name = "SendCtrlAltDel", .label = "Send Ctrl-Alt-Del", .callback = G_CALLBACK(menu_cb_send_ctrlaltdel), - },{ + + /* --- vm menu --- */ .name = "MonitorStop", .stock_id = GTK_STOCK_MEDIA_PAUSE, .label = "_Pause", @@ -461,13 +473,13 @@ static const GtkActionEntry entries[] = { .name = "MonitorSysPowerdown", .label = "_Shutdown", .callback = G_CALLBACK(menu_cb_monitor_sys_powerdown), - },{ .name = "RunGdb", .label = "_Debug with gdb", .callback = G_CALLBACK(menu_cb_run_gdb), - },{ + + /* --- help menu --- */ .name = "About", .stock_id = GTK_STOCK_ABOUT, .label = "_About ...", @@ -522,6 +534,10 @@ static char ui_xml[] = " <separator/>" " <menuitem action='RunGdb'/>" " </menu>" +" <menu action='DevicesMenu'>" +" <menu action='MediaChangeSubMenu'>" +" </menu>" +" </menu>" " <menu action='HelpMenu'>" " <menuitem action='About'/>" " </menu>" |