mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Show remotes in history navigation
This commit is contained in:
parent
09fdc390b0
commit
a4431dbcb9
|
@ -365,18 +365,25 @@ public class NavigationTreeView : Gtk.TreeView
|
|||
|
||||
Gtk.CellRendererText t = cell as Gtk.CellRendererText;
|
||||
|
||||
if (hint == Hint.HEADER)
|
||||
if (hint == Hint.HEADER && (model as Gtk.TreeStore).iter_depth(iter) == 0)
|
||||
{
|
||||
t.weight = Pango.Weight.BOLD;
|
||||
t.background_rgba = d_header_bg;
|
||||
t.foreground_rgba = d_header_fg;
|
||||
}
|
||||
else
|
||||
{
|
||||
t.weight = Pango.Weight.NORMAL;
|
||||
t.background_set = false;
|
||||
t.foreground_set = false;
|
||||
}
|
||||
|
||||
if (hint == Hint.HEADER)
|
||||
{
|
||||
t.weight = Pango.Weight.BOLD;
|
||||
}
|
||||
else
|
||||
{
|
||||
t.weight = Pango.Weight.NORMAL;
|
||||
}
|
||||
});
|
||||
|
||||
append_column(col);
|
||||
|
|
|
@ -54,14 +54,7 @@ namespace GitgHistory
|
|||
}
|
||||
else
|
||||
{
|
||||
/*unowned List<Gitg.Ref> start = lst;
|
||||
|
||||
lst.insert_sorted(r, sort_refs);
|
||||
|
||||
if (lst != start)
|
||||
{
|
||||
remotes.insert(rname, lst.copy());
|
||||
}*/
|
||||
lst.prepend(r);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -100,7 +93,14 @@ namespace GitgHistory
|
|||
|
||||
foreach (var rname in remotenames)
|
||||
{
|
||||
//model.append(item.parsed_name.remote_branch, null, null);
|
||||
model.begin_header(rname, null);
|
||||
|
||||
foreach (var rref in remotes.lookup(rname))
|
||||
{
|
||||
model.append(rref.parsed_name.remote_branch, null, null);
|
||||
}
|
||||
|
||||
model.end_header();
|
||||
}
|
||||
|
||||
model.end_header();
|
||||
|
|
Loading…
Reference in a new issue