[devhelp] shortcuts: add prev/next-tab to the shortcuts window



commit 2977c43eb473b51625e365359da10478e6275fce
Author: Sébastien Wilmet <sw swilmet be>
Date:   Mon Jan 11 09:21:11 2021 +0100

    shortcuts: add prev/next-tab to the shortcuts window
    
    Thanks to Sabri Ünal for an initial patch.

 src/dh-app.c    | 2 ++
 src/dh-window.c | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index a2ce0466..9ceae7f0 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -151,6 +151,8 @@ add_no_gaction_action_infos (void)
         const AmtkActionInfoEntry entries[] = {
                 /* action, icon, label, accel, tooltip */
                 { "no-gaction-open-menu", NULL, NULL, "F10", N_("Open the menu") },
+                { "no-gaction-prev-tab", NULL, NULL, "<Control>Page_Up", N_("Previous tab") },
+                { "no-gaction-next-tab", NULL, NULL, "<Control>Page_Down", N_("Next tab") },
                 { NULL }
         };
 
diff --git a/src/dh-window.c b/src/dh-window.c
index f985bebe..6dea6209 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -394,6 +394,8 @@ shortcuts_window_cb (GSimpleAction *action,
         group = amtk_shortcuts_group_new (_("Tabs and Windows"));
         gtk_container_add (group, amtk_factory_create_shortcut (factory, "win.new-tab"));
         gtk_container_add (group, amtk_factory_create_shortcut (factory, "app.new-window"));
+        gtk_container_add (group, amtk_factory_create_shortcut (factory, "no-gaction-prev-tab"));
+        gtk_container_add (group, amtk_factory_create_shortcut (factory, "no-gaction-next-tab"));
         gtk_container_add (group, amtk_factory_create_shortcut (factory, "win.close-tab"));
         gtk_container_add (group, amtk_factory_create_shortcut (factory, "app.quit"));
         gtk_container_add (section, GTK_WIDGET (group));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]