[gnome-builder] project-tree: port to use loader hints



commit c1925cd7c8ad812cd48cc479edda291be9cca146
Author: Christian Hergert <christian hergert me>
Date:   Mon Nov 23 14:01:17 2015 -0800

    project-tree: port to use loader hints

 plugins/project-tree/gb-project-tree-actions.c |    8 +++-----
 plugins/project-tree/gb-project-tree-builder.c |    2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree-actions.c b/plugins/project-tree/gb-project-tree-actions.c
index c1bd333..3fb560a 100644
--- a/plugins/project-tree/gb-project-tree-actions.c
+++ b/plugins/project-tree/gb-project-tree-actions.c
@@ -144,7 +144,7 @@ gb_project_tree_actions_open (GSimpleAction *action,
       if (!file)
         return;
 
-      ide_workbench_open_files_async (workbench, &file, 1, NULL, NULL, NULL);
+      ide_workbench_open_files_async (workbench, &file, 1, NULL, NULL, NULL, NULL);
     }
 }
 
@@ -191,7 +191,6 @@ gb_project_tree_actions_open_with_editor (GSimpleAction *action,
                                           GVariant      *variant,
                                           gpointer       user_data)
 {
-#if 0
   IdeWorkbench *workbench;
   GbProjectTree *self = user_data;
   GFileInfo *file_info;
@@ -210,8 +209,7 @@ gb_project_tree_actions_open_with_editor (GSimpleAction *action,
       !(workbench = ide_widget_get_workbench (GTK_WIDGET (self))))
     return;
 
-  ide_workbench_open_with_editor (workbench, file);
-#endif
+  ide_workbench_open_files_async (workbench, &file, 1, "editor", NULL, NULL, NULL);
 }
 
 static void
@@ -400,7 +398,7 @@ gb_project_tree_actions__create_cb (GObject      *object,
   if (workbench == NULL)
     return;
 
-  ide_workbench_open_files_async (workbench, &file, 1, NULL, NULL, NULL);
+  ide_workbench_open_files_async (workbench, &file, 1, NULL, NULL, NULL, NULL);
 
   ide_tree_node_invalidate (node);
   ide_tree_node_expand (node, FALSE);
diff --git a/plugins/project-tree/gb-project-tree-builder.c b/plugins/project-tree/gb-project-tree-builder.c
index fec6a5a..ac4eed0 100644
--- a/plugins/project-tree/gb-project-tree-builder.c
+++ b/plugins/project-tree/gb-project-tree-builder.c
@@ -354,7 +354,7 @@ gb_project_tree_builder_node_activated (IdeTreeBuilder *builder,
         goto failure;
 
       workbench = gtk_widget_get_ancestor (GTK_WIDGET (tree), IDE_TYPE_WORKBENCH);
-      ide_workbench_open_files_async (IDE_WORKBENCH (workbench), &file, 1, NULL, NULL, NULL);
+      ide_workbench_open_files_async (IDE_WORKBENCH (workbench), &file, 1, NULL, NULL, NULL, NULL);
 
       return TRUE;
     }


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