[gnome-builder/wip/gtk4-port: 790/1774] plugins/project-tree: attach actions to pane rather than tree
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-builder/wip/gtk4-port: 790/1774] plugins/project-tree: attach actions to pane rather than tree
- Date: Mon, 11 Jul 2022 22:31:24 +0000 (UTC)
commit 1e7b36eeddeec0378e811e0cf7b46fb3eea48d3b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 28 20:28:45 2022 -0700
    plugins/project-tree: attach actions to pane rather than tree
    
    That way they can be activated from menus attached to popovers attached
    to the pane rather than the tree.
 src/plugins/project-tree/gbp-project-tree-pane-actions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/project-tree/gbp-project-tree-pane-actions.c 
b/src/plugins/project-tree/gbp-project-tree-pane-actions.c
index 3c7eb0626..6c3827f53 100644
--- a/src/plugins/project-tree/gbp-project-tree-pane-actions.c
+++ b/src/plugins/project-tree/gbp-project-tree-pane-actions.c
@@ -592,7 +592,7 @@ _gbp_project_tree_pane_init_actions (GbpProjectTreePane *self)
                                    self);
   g_action_map_add_action (G_ACTION_MAP (actions), ignored_action);
   g_action_map_add_action (G_ACTION_MAP (actions), sort_action);
-  gtk_widget_insert_action_group (GTK_WIDGET (self->tree),
+  gtk_widget_insert_action_group (GTK_WIDGET (self),
                                   "project-tree",
                                   G_ACTION_GROUP (actions));
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]