[gnome-builder] editor-view: style cleanup



commit 308998ee2c04de371da186e8a3a14431d1311947
Author: Christian Hergert <chergert redhat com>
Date:   Sun Aug 20 12:53:46 2017 -0700

    editor-view: style cleanup

 libide/editor/ide-editor-view.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libide/editor/ide-editor-view.c b/libide/editor/ide-editor-view.c
index 834e4eb..f1343a8 100644
--- a/libide/editor/ide-editor-view.c
+++ b/libide/editor/ide-editor-view.c
@@ -382,13 +382,14 @@ ide_editor_view_addin_added (IdeExtensionSetAdapter *set,
                              gpointer                user_data)
 {
   IdeEditorView *self = user_data;
+  IdeEditorViewAddin *addin = (IdeEditorViewAddin *)exten;
 
   g_assert (IDE_IS_EXTENSION_SET_ADAPTER (set));
   g_assert (plugin_info != NULL);
-  g_assert (IDE_IS_EDITOR_VIEW_ADDIN (exten));
+  g_assert (IDE_IS_EDITOR_VIEW_ADDIN (addin));
   g_assert (IDE_IS_EDITOR_VIEW (self));
 
-  ide_editor_view_addin_load (IDE_EDITOR_VIEW_ADDIN (exten), self);
+  ide_editor_view_addin_load (addin, self);
 }
 
 static void
@@ -398,13 +399,14 @@ ide_editor_view_addin_removed (IdeExtensionSetAdapter *set,
                                gpointer                user_data)
 {
   IdeEditorView *self = user_data;
+  IdeEditorViewAddin *addin = (IdeEditorViewAddin *)exten;
 
   g_assert (IDE_IS_EXTENSION_SET_ADAPTER (set));
   g_assert (plugin_info != NULL);
-  g_assert (IDE_IS_EDITOR_VIEW_ADDIN (exten));
+  g_assert (IDE_IS_EDITOR_VIEW_ADDIN (addin));
   g_assert (IDE_IS_EDITOR_VIEW (self));
 
-  ide_editor_view_addin_unload (IDE_EDITOR_VIEW_ADDIN (exten), self);
+  ide_editor_view_addin_unload (addin, self);
 }
 
 static void


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