[gitg/wip/adwait/add-remotes] refresh ref_list after add actions
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/adwait/add-remotes] refresh ref_list after add actions
- Date: Fri, 28 Jan 2022 21:24:21 +0000 (UTC)
commit ca17e57e644bf25122a10c16bc2a29e252dc8028
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Fri Jan 28 21:08:43 2022 +0100
refresh ref_list after add actions
gitg/history/gitg-history-refs-list.vala | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gitg/history/gitg-history-refs-list.vala b/gitg/history/gitg-history-refs-list.vala
index c3edac2d..de411efc 100644
--- a/gitg/history/gitg-history-refs-list.vala
+++ b/gitg/history/gitg-history-refs-list.vala
@@ -540,9 +540,12 @@ public class RefsList : Gtk.ListBox
public RefHeader? branches_header { get { return d_all_branches; } }
public RefHeader? remotes_header { get { return d_all_remotes; } }
public RefHeader? tags_header { get { return d_all_tags; } }
- public Gee.LinkedList<GitgExt.Action> branches_actions { get; set; default = null; }
- public Gee.LinkedList<GitgExt.Action> remotes_actions { get; set; default = null; }
- public Gee.LinkedList<GitgExt.Action> tags_actions { get; set; default = null; }
+ private Gee.LinkedList<GitgExt.Action> d_branches_actions = null;
+ private Gee.LinkedList<GitgExt.Action> d_remotes_actions = null;
+ private Gee.LinkedList<GitgExt.Action> d_tags_actions = null;
+ public Gee.LinkedList<GitgExt.Action> branches_actions { get {return d_branches_actions;} set {
d_branches_actions = value; refresh();} }
+ public Gee.LinkedList<GitgExt.Action> remotes_actions { get {return d_remotes_actions;} set {
d_remotes_actions = value; refresh();} }
+ public Gee.LinkedList<GitgExt.Action> tags_actions { get {return d_tags_actions;} set {
d_tags_actions = value; refresh();} }
public signal void changed();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]