-
Notifications
You must be signed in to change notification settings - Fork 55
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 some details of the main window interface #30
Conversation
Hi @mvo5, Before: After: Things I'd like to sort out in a follow-up PR:
Please let me know what you think! |
I like the visual display of the last screenshot. 👍 |
4efd962
to
a185d49
Compare
I'm currently trying to sort out this double free: https://gist.github.com/soc/3b6531cb3e4ae68a52f4c671184e0021 I happens on startup if the setting |
Hey @soc! First, great that you work on improving synaptic! Due to real-life (busyness on my side) it did not get enough love from me. So your help is super appreciated. Feel free to hop on irc as well, I'm usually around at european hours in the #synaptic channel on freenode. [edit clarify who is busy :)] |
@soc about the double free - I checked the gist and this PR and I can't reproduce it here on my 18.04 ubuntu system. However the following diff http://paste.ubuntu.com/p/6wDj7pC3sk/ (against this PR) may helper. It just switches filename to use a c++ string which removes the need to explicitly free things. |
@mvo5 I investigated further, and it seems that the crash only appears when |
@mvo5: Here is the crash with your patch applied:
|
This is enough to trigger the crash for me:
|
I might need to back out of the |
@mvo5 I think this patch is largely good to go (modulo the primary-toolbar thing), I just realized that the crash also happens on the main branch without any of my changes. :-( |
For some reason the |
I think this should be good to go. I found the reason for the crashes and added a second commit fixing it: cafafca With this change the crashes are gone. This is how it looks now:
As shown in the screenshots, I also did a few minor things like enabling rubber banding in the package list, so it's possible to select multiple packages by pressing and dragging the mouse. |
Issues: - panes are missing margins, widgets are rendered too close to each other - there are four ways to show package properties 1. click "properties" button 2. hit Alt+Return 3. enable "show package properties in main window" in the preferences 4. click the "properties" menu item in the "settings" menu bar Changes: - fix the missing margin between the left pane and the right pane - fix the missing margin between the package list pane and the detail pane - move buttons which operate on the package listing to the right ("properties", "search") - general operations ("update", "upgrade", "apply") are kept on the left - if the "show package properties in main window" setting is enabled, the "properties" button is hidden, reducing the amount of different ways package properties are displayed - get rid of quite a few borders, making the interface a bit more light-weight
The internet claims this is undefined behavior.
This allows us to get rid of the gap between the toolbars that shows up as "unstyled" background in some themes like Greybird. I couldn't find a way to get the background color to display properly if the quick search is displayed, I fear this might be a theme issue. Experiments with the `primary-toolbar` style class shows mixed results, so I dropped most of those changes.
@mvo5 Hey Michael, is there anything else that needs to be done? |
Hey @soc - sorry for the delay. My day job kept me quite busy. I think this is great I did some testing and it looks good. I will go over the glade diff in detail and then this can be merged. Synaptic would benefit greatly from more help so feel free to improve other aspects of the app :-D Lots of users will appreciate it and I'm more than happy (and hopefully also more responsive) to help. |
@soc Also, if you want to be credited with a name other than "soc" in the changelog, please do let me know what name I should write there. |
@mvo5 No problem! You can use "Simon Ochsenreither" for the changelog if you want! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Why? It's not very convenient: all control is concentrated on the left side: main menu, toolbar and filters buttons (checkboxes too :)). |
@Skif-off I tried many different combinations, and most looked really "unbalanced", especially when this additional input field that filters the listing also gets added to the toolbar. (As far as I remember, the filter is centered, so when you put everything on the left of it, it starts looking horribly except when you make the window very wide.) So there is some precedent of having the search on the right side, and I went with this, because it was the least bad option of the ones I tried. I think it would be really nice to have either the filter input, or the search dialog, but I think I cannot decide this (and I also lack good ideas how the UI should work conceptually after such a change change). |
Sorry, I forgot and did not use this email box some time.
How did you add quick filter to the toolbar? I did not see it long time ago, I tried and as I understood this filter was dropped. New quick filter shows and works when just press buttons on keyboard and now it's small input box below list of packages, not on toolbar (Xubuntu 18.04, Debian 9). |
Issues:
Changes:
the "properties" button is hidden, reducing the amount of different
ways package properties are be displayed