[gnome-builder] editor-view: allow plugins to poke at editor-view actions



commit 3dae424ee8946007a4f62fbc54f383993cf50149
Author: Christian Hergert <chergert redhat com>
Date:   Sun Aug 20 12:53:28 2017 -0700

    editor-view: allow plugins to poke at editor-view actions
    
    In case the extensions want to poke at the editor-view actions for some
    reason, wait to clean those up until plugins have unloaded.

 libide/editor/ide-editor-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/editor/ide-editor-view.c b/libide/editor/ide-editor-view.c
index 904130f..834e4eb 100644
--- a/libide/editor/ide-editor-view.c
+++ b/libide/editor/ide-editor-view.c
@@ -641,10 +641,10 @@ ide_editor_view_destroy (GtkWidget *widget)
 
   ide_clear_source (&self->toggle_map_source);
 
-  gtk_widget_insert_action_group (widget, "editor-view", NULL);
-
   g_clear_object (&self->addins);
 
+  gtk_widget_insert_action_group (widget, "editor-view", NULL);
+
   g_cancellable_cancel (self->destroy_cancellable);
   g_clear_object (&self->destroy_cancellable);
 


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