Codebase list xapp / 9272970
mate status applet: Strip org.x.StatusIcon prefix from the icon's sort name if it exists. This isn't necessary at all, except to maintain prior sorting order between icons. Michael Webster 2 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
375375 name = proxy.get_name()
376376 path = proxy.get_object_path()
377377
378 print("Key: %s" % (name+path))
378 # print("Key: %s" % (name+path))
379379 return name + path
380380
381381 def destroy_monitor (self):
447447 # for i in icon_list:
448448 # print("before: ", i.proxy.props.icon_name, i.proxy.props.name.lower())
449449
450 icon_list.sort(key=lambda icon: icon.proxy.props.name.lower())
450 icon_list.sort(key=lambda icon: icon.proxy.props.name.replace("org.x.StatusIcon.", "").lower())
451451 icon_list.sort(key=lambda icon: icon.proxy.props.icon_name.lower().endswith("symbolic"))
452452
453453 # for i in icon_list:
189189 # for i in icon_list:
190190 # print("before: ", i.proxy.props.icon_name, i.proxy.props.name.lower())
191191
192 icon_list.sort(key=lambda icon: icon.proxy.props.name.lower())
192 icon_list.sort(key=lambda icon: icon.proxy.props.name.replace("org.x.StatusIcon.", "").lower())
193193 icon_list.sort(key=lambda icon: icon.proxy.props.icon_name.lower().endswith("symbolic"))
194194
195195 # for i in icon_list: