From a0d09bf3a7dba25ef9f18b35baf4d9c91ee1f8e1 Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Thu, 2 Jun 2022 13:14:09 +0300 Subject: [PATCH] updated and fixed some issues --- .../{historymanager5.py => historymanager.py} | 0 historymanager/libhistorymanager/listitem.py | 12 ++++++------ script/history-manager | 4 ++-- setup.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename historymanager/{historymanager5.py => historymanager.py} (100%) diff --git a/historymanager/historymanager5.py b/historymanager/historymanager.py similarity index 100% rename from historymanager/historymanager5.py rename to historymanager/historymanager.py diff --git a/historymanager/libhistorymanager/listitem.py b/historymanager/libhistorymanager/listitem.py index b6915f0..aea2a99 100644 --- a/historymanager/libhistorymanager/listitem.py +++ b/historymanager/libhistorymanager/listitem.py @@ -59,17 +59,17 @@ def __init__(self, operation, parent=None): def iconReplace(self, icon): if icon == "install": - return "package-install" + return "/usr/share/pixmaps/icons/installed_pisi.png" elif icon == "remove": - return "package-remove" + return "/usr/share/pixmaps/icons/removed_pisi.png" elif icon == "repoupdate": - return "update-none" + return "/usr/share/pixmaps/icons/update-repo.svg" elif icon == "snapshot": - return "draw-star" + return "/usr/share/pixmaps/icons/system-snapshot.svg" elif icon == "takeback": - return "draw-arrow-back" + return "/usr/share/pixmaps/icons/take_back.svg" elif icon == "upgrade": - return "package-upgrade" + return "/usr/share/pixmaps/icons/updated_pisi.png" elif icon == "unknown": return "unknown" diff --git a/script/history-manager b/script/history-manager index 230827a..8c15436 100755 --- a/script/history-manager +++ b/script/history-manager @@ -1,5 +1,5 @@ #!/usr/bin/env python -from historymanager import historymanager5 +from historymanager import historymanager -historymanager5.main() \ No newline at end of file +historymanager.main() diff --git a/setup.py b/setup.py index 31612cf..ca6a264 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ langs = [] for l in listdir('languages'): if l.endswith('ts'): - system('lrelease-qt5 languages/%s' % l) + system('lrelease languages/%s' % l) langs.append(('languages/%s' % l).replace('.ts', '.qm')) #system("pyrcc5 resources/data.qrc -o historymanager/data_rc.py")