[gnome-builder/gnome-builder-3-28] project-tree: avoid tree refresh when vcs changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] project-tree: avoid tree refresh when vcs changes
- Date: Mon, 2 Apr 2018 01:06:54 +0000 (UTC)
commit 6417894e047bbfbba00ba4ac17c30ad438311d0a
Author: Christian Hergert <chergert redhat com>
Date: Fri Mar 30 15:50:12 2018 -0700
project-tree: avoid tree refresh when vcs changes
Now that the tree responds to updates from the directory monitor, we should
be able to drop refresh from vcs changes.
Fixes #449
src/plugins/project-tree/gb-project-tree.c | 23 -----------------------
1 file changed, 23 deletions(-)
---
diff --git a/src/plugins/project-tree/gb-project-tree.c b/src/plugins/project-tree/gb-project-tree.c
index 34069414d..6283dbb8d 100644
--- a/src/plugins/project-tree/gb-project-tree.c
+++ b/src/plugins/project-tree/gb-project-tree.c
@@ -128,20 +128,6 @@ gb_project_tree_project_file_trashed (GbProjectTree *self,
IDE_EXIT;
}
-static void
-gb_project_tree_vcs_changed (GbProjectTree *self,
- IdeVcs *vcs)
-{
- GActionGroup *group;
-
- g_assert (GB_IS_PROJECT_TREE (self));
- g_assert (IDE_IS_VCS (vcs));
-
- group = gtk_widget_get_action_group (GTK_WIDGET (self), "project-tree");
- if (group != NULL)
- g_action_group_activate_action (group, "refresh", NULL);
-}
-
static void
gb_project_tree_buffer_saved_cb (GbProjectTree *self,
IdeBuffer *buffer,
@@ -182,19 +168,10 @@ gb_project_tree_set_context (GbProjectTree *self,
DzlTreeNode *root;
IdeProject *project;
IdeBufferManager *buffer_manager;
- IdeVcs *vcs;
g_return_if_fail (GB_IS_PROJECT_TREE (self));
g_return_if_fail (IDE_IS_CONTEXT (context));
- vcs = ide_context_get_vcs (context);
-
- g_signal_connect_object (vcs,
- "changed",
- G_CALLBACK (gb_project_tree_vcs_changed),
- self,
- G_CONNECT_SWAPPED);
-
project = ide_context_get_project (context);
g_signal_connect_object (project,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]