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

GTK interface: eliminate horizontal scrolling in the package listview (ellipsize the "Summary" column's text, make other columns non-resizeable?) #174

Open
nekohayo opened this issue Nov 17, 2020 · 1 comment

Comments

@nekohayo
Copy link

nekohayo commented Nov 17, 2020

When I first launched DNFDragora's GTK gui, maybe due to the default/unset width of the columns, even my 2560 pixels ultrawide screen couldn't fit the package listing contents without horizontal scrolling:

Screenshot from 2020-11-17 14-00-05

Horizontal scrolling should be avoided as much as possible. Would be nice if it could just automagically figure out the correct column widths based on the width of the window?

I'm guessing that a way to tackle the problem could be:

  1. to let the "Summary" column be ellipsizeable by pango (so the text automatically gets truncated by "..." when space is insufficient), because Summary is the one thing that is less important than the rest and that we, as users, can expect to see truncated if needed, and we can see it in the details pane anyway. And you could even make it so that a GtkTooltip shows on mouseover with the truncated details if needed.
  2. let the other columns, particularly version, release, size and status, be non-resizeable so that they fit the exact (and minimum) width they require. Basically let the "Summary" column's width be the wildcard that adjusts based on everything else.
@anaselli
Copy link
Collaborator

Unfortunately that is not doable in dnfdragora code.

The idea of changing YMGA_CBTable to implement different column behavior could be one to follow.
Remember though that all starts from YTable becuase i took most of the code from there and added the checkbox.
I tried to change Gtk implementation of YMGA_CBTable to get rid of that at least a bit without luck, If you have the skill we are really happy to get helped. We, as manatools team, sometimes also fix libyui-gtk when we can since upstream don't, and that to give users Gtk implementation of our tools.

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

No branches or pull requests

2 participants