[gnome-builder] libide/terminal: insert actions into PanelWidget



commit 3c409c0fc5c83fc8e3d173bb2c12b6a571fc4697
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 27 12:20:21 2022 -0700

    libide/terminal: insert actions into PanelWidget
    
    This allows them to be available via the "page." prefix starting from
    the frame so that menus can use them.

 src/libide/terminal/ide-terminal-page-actions.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/terminal/ide-terminal-page-actions.c b/src/libide/terminal/ide-terminal-page-actions.c
index b231bf3b9..7e0368d86 100644
--- a/src/libide/terminal/ide-terminal-page-actions.c
+++ b/src/libide/terminal/ide-terminal-page-actions.c
@@ -333,7 +333,9 @@ ide_terminal_page_actions_init (IdeTerminalPage *self)
   g_autoptr(GSimpleActionGroup) group = NULL;
 
   group = g_simple_action_group_new ();
-  g_action_map_add_action_entries (G_ACTION_MAP (group), IdeTerminalPageActions,
-                                   G_N_ELEMENTS (IdeTerminalPageActions), self);
-  gtk_widget_insert_action_group (GTK_WIDGET (self), "terminal-view", G_ACTION_GROUP (group));
+  g_action_map_add_action_entries (G_ACTION_MAP (group),
+                                   IdeTerminalPageActions,
+                                   G_N_ELEMENTS (IdeTerminalPageActions),
+                                   self);
+  panel_widget_insert_action_group (PANEL_WIDGET (self), "terminal", G_ACTION_GROUP (group));
 }


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