Merge ~hsbasu/ubuntu/+source/update-manager:fix-download-page into ubuntu/+source/update-manager:ubuntu/devel

Proposed by Himadri Sekhar Basu
Status: Needs review
Proposed branch: ~hsbasu/ubuntu/+source/update-manager:fix-download-page
Merge into: ubuntu/+source/update-manager:ubuntu/devel
Diff against target: 12 lines (+1/-0)
1 file modified
UpdateManager/backend/InstallBackendAptdaemon.py (+1/-0)
Reviewer Review Type Date Requested Status
Nathan Teodosio (community) Needs Resubmitting
Erich Eickmeyer (community) Approve
Review via email: mp+464808@code.launchpad.net

Commit message

Fix scroll window on update downloading page

- Currently the download progress box does not
  expand vertically when in fullscreen, however
  the expansion in vertical direction with
  increasing window height is the proper
  behaviour. This fix provides this desired
  behaviour.
- Fixes LP: #1772486, LP: #1856404

Description of the change

Fixes LP: #1772486, LP: #1856404

To post a comment you must log in.
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Looks great, approved from a community standpoint.

review: Approve
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Thanks for your merge request, but you targeted https://launchpad.net/~git-ubuntu-import:

> It's important that only the git-ubuntu importer service pushes to these repositories. They are supposed to be a precise reflection of Launchpad publication history of Ubuntu, and developers should be able to rely on this. If users push to these repositories directly, this promise will get broken.

Can you please target https://code.launchpad.net/~ubuntu-core-dev/update-manager/+git/update-manager/+ref/main instead?

Do you know where this download_scrolled is coming from? I cannot find where it's defined. (But if it works, it works, not a blocking question.)

--->
% grep -ri download.scrolled
UpdateManager/backend/InstallBackendAptdaemon.py: self.download_scrolled.show()
UpdateManager/backend/InstallBackendAptdaemon.py: self.download_scrolled.hide()
UpdateManager/backend/InstallBackendAptdaemon.py: self.download_scrolled.hide()
<---

review: Needs Resubmitting
Revision history for this message
Himadri Sekhar Basu (hsbasu) wrote :

Hi! Nathan. Thanks for the guidance. I'll resubmit the MR.

Please check https://imgur.com/a/4EQPd4M. download_scrolled is actually a Gtk.ScrolledWindow() defined in the package python3-aptdaemon.gtk3widgets.

Revision history for this message
Himadri Sekhar Basu (hsbasu) wrote :

Unmerged commits

9cac4c9... by Himadri Sekhar Basu

Fix scroll window on update downloading page

- Currently the download progress box does not
  expand vertically when in fullscreen, however
  the expansion in vertical direction with
  increasing window height is the proper
  behaviour. This fix provides this desired
  behaviour.
- Fixes LP: #1772486, LP: #1856404

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/UpdateManager/backend/InstallBackendAptdaemon.py b/UpdateManager/backend/InstallBackendAptdaemon.py
2index 2959aa6..aced9bf 100644
3--- a/UpdateManager/backend/InstallBackendAptdaemon.py
4+++ b/UpdateManager/backend/InstallBackendAptdaemon.py
5@@ -52,6 +52,7 @@ class UpdateManagerExpander(AptDetailsExpander):
6 if status in (STATUS_DOWNLOADING, STATUS_DOWNLOADING_REPO):
7 self.set_sensitive(True)
8 self.download_scrolled.show()
9+ self.download_scrolled.set_vexpand(True)
10 if self.terminal:
11 self.terminal.hide()
12 elif status == STATUS_COMMITTING:

Subscribers

People subscribed via source and target branches