Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve comps group support #7

Merged
merged 1 commit into from
Nov 16, 2016

Conversation

kkofler
Copy link
Contributor

@kkofler kkofler commented Nov 16, 2016

New file dnfdragora/compsicons.py, similar to groupicons.py, but for comps.

New tool tools/gen-comps-category-list.sh: Generates a map from category name to ID for dnfdragora/compsicons.py, as a workaround for manatools/dnfdaemon#9.

dnfdragora/ui.py (mainGui._getAllGroupIDList): Remember the UI names for each ID in an id_to_name_map.
(mainGui._fillGroupTree): Handle comps separately, use compsicons.py to get the icons (#2) and use the id_to_name_map to get the UI name (#3).

Fixes #2.
Fixes #3.

The only remaining issue is that the UI names are not translated, which I filed as manatools/dnfdaemon#10 because Yumex-DNF is also affected (and thus it is clearly dnfdaemon's fault).

New file dnfdragora/compsicons.py, similar to groupicons.py, but for
comps.

New tool tools/gen-comps-category-list.sh: Generates a map from category
name to ID for dnfdragora/compsicons.py, as a workaround for
manatools/dnfdaemon#9.

dnfdragora/ui.py (mainGui._getAllGroupIDList): Remember the UI names for
                                               each ID in an
                                               id_to_name_map.
                 (mainGui._fillGroupTree): Handle comps separately, use
                                           compsicons.py to get the
                                           icons (manatools#2) and use the
                                           id_to_name_map to get the UI
                                           name (manatools#3).

Fixes manatools#2.
Fixes manatools#3.

The only remaining issue is that the UI names are not translated, which
I filed as manatools/dnfdaemon#10 because Yumex-DNF is also affected (and
thus it is clearly dnfdaemon's fault).
Copy link
Member

@Conan-Kudo Conan-Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've verified that this does indeed fix those two problems, and wow, those icons are old. But that's not dnfdragora's fault.

The code looks good as well.

@Conan-Kudo Conan-Kudo merged commit 1e34f1a into manatools:master Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants