Added hotkeys for tab switching

The hotkeys are the same as in Placidus, as the original Astrognome didn't
have any.
This commit is contained in:
2013-09-20 12:41:21 +02:00
parent e180603a6b
commit 8ef33d3dec
2 changed files with 13 additions and 0 deletions

View File

@@ -198,6 +198,8 @@ setup_accelerators(AgApp *app)
gtk_application_add_accelerator(GTK_APPLICATION(app), "<Primary>s", "win.save", NULL);
gtk_application_add_accelerator(GTK_APPLICATION(app), "<Primary><Shift>s", "win.save-as", NULL);
gtk_application_add_accelerator(GTK_APPLICATION(app), "F10", "win.gear-menu", NULL);
gtk_application_add_accelerator(GTK_APPLICATION(app), "F5", "win.change-tab", g_variant_new_string("chart"));
gtk_application_add_accelerator(GTK_APPLICATION(app), "F9", "win.change-tab", g_variant_new_string("aspects"));
}
static void