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

View file

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