tools: replace performance-log viewer call-graph direction icons

Use the less-ambiguous, if just as clumsy,
"format-indent-more/less" icons, to stand for the
caller -> callee, and callee -> caller, directions, respectively.
This commit is contained in:
Ell 2018-09-21 07:36:34 -04:00
parent c537341d35
commit c7a4eb4602
1 changed files with 3 additions and 3 deletions

View File

@ -1839,7 +1839,7 @@ class ProfileViewer (Gtk.ScrolledWindow):
header.show ()
if not id:
button = Gtk.Button (tooltip_text = "Graph direction")
button = Gtk.Button (tooltip_text = "Call-graph direction")
header.pack_end (button)
button.show ()
@ -2021,9 +2021,9 @@ class ProfileViewer (Gtk.ScrolledWindow):
def update_ui (self):
if not self.id:
if self.direction == self.Direction.CALLEES:
icon_name = "go-up-symbolic"
icon_name = "format-indent-more-symbolic"
else:
icon_name = "go-down-symbolic"
icon_name = "format-indent-less-symbolic"
self.direction_image.set_from_icon_name (icon_name,
Gtk.IconSize.BUTTON)