(jaunty) Text hidden on "Who are you?" step

Bug #353090 reported by Juanje Ojeda
26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Guadalinex
Fix Released
High
Juanje Ojeda
ubiquity (Ubuntu)
Fix Released
High
Robert Ancell
Jaunty
Fix Released
High
Robert Ancell

Bug Description

Binary package hint: ubiquity

I'm testing Ubuntu Jaunty daily-build from 01-Apr-2009 and I've started it in Spanish.

When I arrive to the "Who are you?" step I found there are some strings (the autologin ones) which were there before but now doen't show up.

But when I choose one autologin option, then all hidden texts show up.

I attacth 2 screenshots. The first is before the click and the second, just after.

I believe the problem comes from the change on revision 3136[1], because it changed som autologin stuff in gtk_ui.py, but I didn't check well yet.

[1] http://bazaar.launchpad.net/~ubuntu-installer/ubiquity/trunk/revision/3136

Revision history for this message
Juanje Ojeda (juanje) wrote :
Revision history for this message
Juanje Ojeda (juanje) wrote :
Revision history for this message
Juanje Ojeda (juanje) wrote :

There is also part of the comment for the second question which was hidden and suddenly showed up when the click was done.

Changed in guadalinex:
importance: Undecided → High
Juanje Ojeda (juanje)
description: updated
tags: added: autologin gui
Revision history for this message
Juanje Ojeda (juanje) wrote :

I've just comfirmed that it also happends in English version, not just with Spanish translations

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Changed in guadalinex:
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

I see this too, but I haven't yet worked out what's going on ...

Changed in ubiquity (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

By the way, surely r3136 changed autopartitioning, not autologin?

Revision history for this message
Juanje Ojeda (juanje) wrote :

Yes, I think I was wrong with the revision. I was looking for any changes on autologin at the logs and it showed up, but after I got a better look and I think it's not there...

I'm still looking...

Revision history for this message
Martin Pitt (pitti) wrote :

Robert, can you please take a look at this? This looks like a GTK quirk, and Colin doesn't get further with this.

2009 Apr 03 17:21:10 <cjwatson> I've reproduced it, it's just a mystery. The radio button labels are blank until you select one of them

Changed in ubiquity (Ubuntu Jaunty):
assignee: nobody → robert-ancell
Revision history for this message
Colin Watson (cjwatson) wrote :

This doesn't appear to reproduce by simply loading up /usr/share/ubiquity/glade/stepUserInfo.glade in Python.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

It does appear to be a GTK+ quirk that is being triggered by translate_widget(). It occurs when the label is set for the GtkRadioButtons. This can be proven by skipping this step for widgets which start with 'login_', i.e.
            if not widget.get_name().startswith('login_'):
                widget.set_label(text)

I haven't yet been able to reproduce this in a simple test case yet. My guess is that setting the radio button labels while they are not visible (they are on a different tab) is not rendering the label when they become visible. As reported the labels get rendered when clicked on.

Note also the attached screenshots show one of the labels being truncated - not sure if this is related, I think it is a long-standing GTK+ bug but I haven't got the bug number handy.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

It appears to be on the second translate that the problem occurs.
1. Hack ubiquity.glade to add tabs to the notebook

2a. Start ubiquity and change to page 7. The RadioButtons have been translated once and have the labels showing. Return to page 2 and continue.
3a. During the transition to page 3 the widgets are all retranslated
4a. When page 7 is reached it will show the RadioButtons with labels

2b. Start uniquity. Do not view page 7.
3b. During the transition to page 3 the widgets are all retranslated
4b. When page 7 is reached it will show the RadioButtons *without* labels

It appears that setting the RadioButton labels a second time without them having being realized causes them not to be re-rendered. Still haven't reproduced in a simple test case.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Added a branch with a proposed workaround:
lp:~robert-ancell/ubiquity/trunk

This calls widget.realize() after the label has been updated and causes the labels to be displayed correctly.

Changed in ubiquity (Ubuntu Jaunty):
status: Triaged → In Progress
Revision history for this message
Robert Ancell (robert-ancell) wrote :

I don't know if the bzr change is useful (it required a 40M upload to push). The changes are:
=== modified file 'debian/changelog'
--- debian/changelog 2009-04-06 18:47:37 +0000
+++ debian/changelog 2009-04-07 07:19:48 +0000
@@ -1,3 +1,9 @@
+ubiquity (1.12.4ubuntu1) jaunty; urgency=low
+
+ * Workaround for radio button labels dissapearing (LP: #353090)
+
+ -- Robert Ancell <email address hidden> Tue, 07 Apr 2009 17:18:57 +1000
+
 ubiquity (1.12.4) jaunty; urgency=low

   [ Colin Watson ]

=== modified file 'ubiquity/frontend/gtk_ui.py'
--- ubiquity/frontend/gtk_ui.py 2009-04-03 11:43:26 +0000
+++ ubiquity/frontend/gtk_ui.py 2009-04-07 07:21:21 +0000
@@ -722,6 +722,11 @@

             question = i18n.map_widget_name(widget.get_name())
             widget.set_label(text)
+
+ # Workaround for radio button labels dissapearing on second
+ # translate when not visible. LP: #353090
+ widget.realize()
+
             if question.startswith('ubiquity/imported/'):
                 stock_id = question[18:]
                 widget.set_use_stock(False)

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

Thanks! That seems like a viable workaround. (And the bzr branch seems fine, so I'll just merge that.)

Changed in ubiquity (Ubuntu Jaunty):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 1.12.5

---------------
ubiquity (1.12.5) jaunty; urgency=low

  [ Robert Ancell ]
  * GTK frontend:
    - Workaround for radio button labels disappearing (LP: #353090).

  [ Colin Watson ]
  * KDE frontend:
    - Fix typo in installation_medium_mounted handler (LP: #354515).
  * Automatic update of included source packages: user-setup 1.23ubuntu17.

 -- Colin Watson <email address hidden> Wed, 08 Apr 2009 02:29:12 +0100

Changed in ubiquity (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Juanje Ojeda (juanje)
Changed in guadalinex:
status: Confirmed → Fix Released
Revision history for this message
Paul Larson (pwlars) wrote :

Confirmed fixed in todays build

Revision history for this message
Adric Riedel (adric-riedel) wrote :

This problem showed up in the Kubuntu Karmic Desktop install CD. There were, in a few places, not enough space for the lines of text the system tried to display.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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