[gnome-builder] omnibar: Sync the VCS branch name with the OmniBar branch label
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] omnibar: Sync the VCS branch name with the OmniBar branch label
- Date: Thu, 21 Jul 2016 00:00:42 +0000 (UTC)
commit 5d87074f744bb7f0493b50ec91805794e9ffdb16
Author: Matthew Leeds <mleeds redhat com>
Date: Wed Jul 20 17:57:25 2016 -0400
omnibar: Sync the VCS branch name with the OmniBar branch label
The VCS branch name in the OmniBar is not being updated when the user
changes to a different branch, as it is for the popover. This commit
makes the branch name sync both in the OmniBar and the popover.
libide/workbench/ide-omni-bar.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libide/workbench/ide-omni-bar.c b/libide/workbench/ide-omni-bar.c
index 7feded2..2fc636f 100644
--- a/libide/workbench/ide-omni-bar.c
+++ b/libide/workbench/ide-omni-bar.c
@@ -753,6 +753,12 @@ ide_omni_bar_init (IdeOmniBar *self)
egg_binding_group_bind (self->vcs_bindings,
"branch-name",
+ self->branch_label,
+ "label",
+ G_BINDING_SYNC_CREATE);
+
+ egg_binding_group_bind (self->vcs_bindings,
+ "branch-name",
self->popover_branch_label,
"label",
G_BINDING_SYNC_CREATE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]