[gnome-builder/wip/gtk4-port] plugins/project-tree: attach actions to pane rather than tree



commit abe7e82b33575a99a45ae4d7d8a4fe4ef3282bad
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]