def get_icons_pixbuffers():
result = []
for icon_filename in WINDOW_ICON_FILENAMES:
abs_filename = get_ui_file_location(icon_filename, silent=True)
if abs_filename:
try:
result.append(Gdk.pixbuf_new_from_file(abs_filename))
except GObject.GError as err_msg:
# ignore icons that are not found
log.debug("Failed to process window icon (%s): %s", abs_filename, err_msg)
else:
log.debug("Failed to locate window icon: %s", icon_filename)
return result
评论列表
文章目录