[gnome-builder] git: emit changed when setting repository object



commit ee00a9a7cab3acf84b221ca3219620d955874533
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 24 16:41:33 2019 -0800

    git: emit changed when setting repository object

 src/plugins/git/gbp-git-vcs.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/git/gbp-git-vcs.c b/src/plugins/git/gbp-git-vcs.c
index c00a73fc4..b792eafda 100644
--- a/src/plugins/git/gbp-git-vcs.c
+++ b/src/plugins/git/gbp-git-vcs.c
@@ -534,7 +534,10 @@ gbp_git_vcs_reload_finish (GbpGitVcs     *self,
     }
 
   if (g_set_object (&self->repository, repository))
-    g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_REPOSITORY]);
+    {
+      ide_vcs_emit_changed (IDE_VCS (self));
+      g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_REPOSITORY]);
+    }
 
 failure:
   ide_object_unlock (IDE_OBJECT (self));


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