Use primary menu instead of gtk/menus.ui

Part of the 3.32 initiative to get rid of the app menu.
This commit is contained in:
Christopher Davis
2019-08-06 07:27:41 -07:00
parent 287970bec8
commit 46431b1787
4 changed files with 235 additions and 200 deletions

View File

@@ -354,6 +354,7 @@ static void
teleport_app_startup (GApplication *app) {
TeleportAppPrivate *priv;
GtkStyleProvider *provider;
static const gchar *quit_accels[] = { "<Primary>q", NULL };
mainApplication = TELEPORT_APP (app);
priv = mainApplication->priv;
@@ -363,6 +364,8 @@ teleport_app_startup (GApplication *app) {
G_N_ELEMENTS (app_entries),
app);
gtk_application_set_accels_for_action (GTK_APPLICATION (app), "app.quit", quit_accels);
G_APPLICATION_CLASS (teleport_app_parent_class)->startup (app);
/* window */