[gnome-builder] lide/gui: implement help_overlay for keyboard shortcuts



commit d4bee634f8e9b8527730f46c489a7ff3bfb692f4
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 29 16:58:06 2022 -0700

    lide/gui: implement help_overlay for keyboard shortcuts
    
    This uses the new dynamically generated shortcuts window which gets
    generated using a combination of our shortcut list model and menus.ui
    where various actions (and global search actions) are stored.
    
    Fixes #1740

 src/libide/gui/ide-workspace.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/libide/gui/ide-workspace.c b/src/libide/gui/ide-workspace.c
index 7478d15ab..c802514ae 100644
--- a/src/libide/gui/ide-workspace.c
+++ b/src/libide/gui/ide-workspace.c
@@ -29,6 +29,7 @@
 #include "ide-page-private.h"
 #include "ide-search-popover-private.h"
 #include "ide-shortcut-bundle-private.h"
+#include "ide-shortcut-window-private.h"
 #include "ide-workspace-addin.h"
 #include "ide-workspace-private.h"
 #include "ide-workbench-private.h"
@@ -527,9 +528,13 @@ ide_workspace_action_help_overlay (gpointer    instance,
                                    GVariant   *param)
 {
   IdeWorkspace *self = instance;
+  IdeWorkspacePrivate *priv = ide_workspace_get_instance_private (self);
+  GtkWidget *window;
 
   g_assert (IDE_IS_WORKSPACE (self));
 
+  if ((window = ide_shortcut_window_new (priv->shortcuts)))
+    gtk_window_present (GTK_WINDOW (window));
 }
 
 static void


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