Progress window resizes unexpectedly during package removal

Bug #61516 reported by Matt Zimmerman
4
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
Low
Colin Watson

Bug Description

The "Preparing to completely remove" messages seem to cause the window to expand, as they're larger than its size otherwise. It abruptly expands and contracts during the progress message, which doesn't look very good.

I think those progress messages should be made smaller in apt and will file that separately, but ubiquity should handle this more gracefully.

Matt Zimmerman (mdz)
Changed in ubiquity:
importance: Untriaged → Low
Revision history for this message
Colin Watson (cjwatson) wrote :

Initial thought: check if size_request() is bigger than the last time and if so set_size_request()? (I'm not sure if that might cause GTK to be reluctant to make the label bigger than the size request, though.)

Changed in ubiquity:
status: Unconfirmed → Confirmed
Revision history for this message
Johan Dahlin (jdahlin-deactivatedaccount) wrote :

There are a couple of different approaches to avoid making an interface resize when a message of a different with is set

* Make the initial window large enough to handle all the strings
* Make the strings shorter
* Use ellipsize [which cuts the text and adds dots when it does not fit]
* Break the text into several lines
* Add a brief text and a more detailed one which is displayed with help of a tooltip or expander.
* Change the font size

Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks, Johan. The set of strings is not known in advance, and comes from an entirely different codebase (apt), so I think ellipsize might be my best bet here. I'll give that a try.

Revision history for this message
Christian Reis (kiko) wrote :

One point to make is that we're not sure why the window is shrinking. Are you reusing the same window, or are they multiple windows being used as the message changes? If you create a trivial example using pygtk-console you'll see that a Window created with default arguments and to which a Label is added does not shrink after expanding. Use label.set_text() to experiment.

Revision history for this message
Colin Watson (cjwatson) wrote :

Excellent; ellipsize plus a bit of tweaking of expand/fill got the job done, and it looks very nice. Thanks, Johan!

Changed in ubiquity:
status: Confirmed → Fix Committed
assignee: nobody → kamion
Revision history for this message
Colin Watson (cjwatson) wrote :

Christian: it's definitely the same window; all I'm doing is set_markup on the label. I'm guessing that it was probably shrinking because my glade file had been setting both expand and fill to false when adding the label to its surrounding hbox, which I've now fixed.

Revision history for this message
Colin Watson (cjwatson) wrote :

ubiquity (1.1.22) edgy; urgency=low

  [ Jonathan Riddell ]
  * KDE Frontend:
    - Make the mountpoints page use a scroll view

  [ Colin Watson ]
  * GTK frontend: Make the debconf progress title and info labels ellipsise
    rather than stretching the window if they get too long (closes: Malone
    #61516).

 -- Colin Watson <email address hidden> Fri, 22 Sep 2006 10:28:34 +0100

Changed in ubiquity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.