diff options
author | Sabri Ünal <libreajans@gmail.com> | 2020-04-03 15:09:26 +0300 |
---|---|---|
committer | Jonathan Kang <jonathankang@gnome.org> | 2020-07-27 07:11:44 +0000 |
commit | 7616c3a6d0cf56a15436a550b5dfe4bb9bc51a8f (patch) | |
tree | f46324427c1db8c3aae321c700eb20f5601e8704 /src | |
parent | 622ca31a11a64a637bbe1c497fd6b8bf6cc4b1cc (diff) | |
download | gnome-logs-7616c3a6d0cf56a15436a550b5dfe4bb9bc51a8f.tar.gz |
gl-application.c: add four shortcuts
F1: Help
Ctrl+E: Export
Ctrl+N: New window
Ctrl+question: Keyboard shortcuts
Diffstat (limited to 'src')
-rw-r--r-- | src/gl-application.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gl-application.c b/src/gl-application.c index f2d9eaa..46426b1 100644 --- a/src/gl-application.c +++ b/src/gl-application.c @@ -211,6 +211,10 @@ launch_window (GApplication *application) GlApplicationPrivate *priv; const gchar * const close_accel[] = { "<Primary>w", NULL }; const gchar * const search_accel[] = { "<Primary>f", NULL }; + const gchar * const export_accel[] = { "<Primary>e", NULL }; + const gchar * const help_accel[] = { "F1", NULL }; + const gchar * const new_window_accel[] = { "<Primary>n", NULL }; + const gchar * const help_overlay_accel[] = { "<Primary>question", NULL }; priv = gl_application_get_instance_private (GL_APPLICATION (application)); @@ -221,6 +225,15 @@ launch_window (GApplication *application) "win.close", close_accel); gtk_application_set_accels_for_action (GTK_APPLICATION (application), "win.search", search_accel); + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "win.export", export_accel); + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "app.help", help_accel); + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "app.new-window", new_window_accel); + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "win.show-help-overlay", + help_overlay_accel); on_monospace_font_name_changed (priv->desktop, DESKTOP_MONOSPACE_FONT_NAME, priv); |