updated gtk+2.0 package has problems referring to the name of widgets loaded from a builder UI file

Bug #503710 reported by Mario Limonciello on 2010-01-06
56
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gtk+2.0 (Ubuntu)
Undecided
Unassigned
mythbuntu-control-centre (Ubuntu)
Undecided
Unassigned
ubiquity (Ubuntu)
Undecided
Unassigned
usb-creator (Ubuntu)
Undecided
Unassigned

Bug Description

The upgrade today has caused ubiquity to stop launching because it refers to widgets at the top level by calling setattr on them.

I've created a simple test case that i'm attaching. You can see it successfully running with the old gtk+2.0, and then failing with the new one here:

test@test-laptop:~$ python test.py
test@test-laptop:~$ sudo apt-get install libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gtk2-engines-pixbuf libgail-common libgail18
The following packages will be upgraded:
  gtk2-engines-pixbuf libgail-common libgail18 libgtk2.0-0 libgtk2.0-bin
  libgtk2.0-common
6 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
Need to get 4,786kB of archives.
After this operation, 139kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com lucid/main libgail-common 2.19.2-1 [410kB]
Get:2 http://us.archive.ubuntu.com lucid/main libgail18 2.19.2-1 [280kB]
Get:3 http://us.archive.ubuntu.com lucid/main libgtk2.0-common 2.19.2-1 [602kB]
Get:4 http://us.archive.ubuntu.com lucid/main gtk2-engines-pixbuf 2.19.2-1 [615kB]
Get:5 http://us.archive.ubuntu.com lucid/main libgtk2.0-0 2.19.2-1 [2,604kB]
Get:6 http://us.archive.ubuntu.com lucid/main libgtk2.0-bin 2.19.2-1 [276kB]
Fetched 4,786kB in 10s (459kB/s)
(Reading database ... 92709 files and directories currently installed.)
Preparing to replace libgail-common 2.19.1-1 (using .../libgail-common_2.19.2-1_i386.deb) ...
Unpacking replacement libgail-common ...
Preparing to replace libgail18 2.19.1-1 (using .../libgail18_2.19.2-1_i386.deb) ...
Unpacking replacement libgail18 ...
Preparing to replace libgtk2.0-common 2.19.1-1 (using .../libgtk2.0-common_2.19.2-1_all.deb) ...
Unpacking replacement libgtk2.0-common ...
Preparing to replace gtk2-engines-pixbuf 2.19.1-1 (using .../gtk2-engines-pixbuf_2.19.2-1_i386.deb) ...
Unpacking replacement gtk2-engines-pixbuf ...
Preparing to replace libgtk2.0-0 2.19.1-1 (using .../libgtk2.0-0_2.19.2-1_i386.deb) ...
Unpacking replacement libgtk2.0-0 ...
Preparing to replace libgtk2.0-bin 2.19.1-1 (using .../libgtk2.0-bin_2.19.2-1_all.deb) ...
Unpacking replacement libgtk2.0-bin ...
Processing triggers for man-db ...
Setting up libgtk2.0-common (2.19.2-1) ...
Setting up libgtk2.0-0 (2.19.2-1) ...

Setting up libgail18 (2.19.2-1) ...

Setting up libgail-common (2.19.2-1) ...
Setting up gtk2-engines-pixbuf (2.19.2-1) ...
Setting up libgtk2.0-bin (2.19.2-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
test@test-laptop:~$ python test.py
Traceback (most recent call last):
  File "test.py", line 14, in <module>
    test_object.show()
  File "test.py", line 11, in show
    self.window1.show()
AttributeError: 'TestClass' object has no attribute 'window1'

ProblemType: Bug
Architecture: i386
Date: Wed Jan 6 03:32:00 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Mythbuntu 10.04 "Lucid Lynx" - Alpha i386 (20100103)
Package: libgtk2.0-bin 2.19.2-1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-9.13-generic
SourcePackage: gtk+2.0
Tags: lucid
Uname: Linux 2.6.32-9-generic i686

Mario Limonciello (superm1) wrote :
Mario Limonciello (superm1) wrote :
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mythbuntu-control-centre - 0.61-0ubuntu1

---------------
mythbuntu-control-centre (0.61-0ubuntu1) lucid; urgency=low

  * Widget names are no longer stored in the widget's internal name, but
    rather in the object data. Sync this information back to the widget's
    internal name. (LP: #503710)
 -- Mario Limonciello <email address hidden> Wed, 06 Jan 2010 03:23:08 -0600

Changed in mythbuntu-control-centre (Ubuntu):
status: New → Fix Released
Mario Limonciello (superm1) wrote :

Marking the gtk task invalid. It appears to be a fundamental change in the code that any applications that run into this issue will just have to adjust for.

Changed in gtk+2.0 (Ubuntu):
status: New → Invalid
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 2.1.7

---------------
ubiquity (2.1.7) lucid; urgency=low

  [ Mario Limonciello ]
  * Mythbuntu: Reconfigure mythbuntu-default-settings to ensure that the
    DefaultSession is set.
  * Only run hal-lock if hald is actually running due to changes in
    hal 0.5.14-0ubuntu2.
  * Widget names are no longer stored in the widget's internal name, but
    rather in the object data. Sync this information back to the widget's
    internal name. (LP: #503710)
  * Automatic update of included source packages: grub-installer
    1.49ubuntu1.

  [ Evan Dandrea ]
  * Copy any network configuration set up by the user of the live CD to
    the installed system.
 -- Mario Limonciello <email address hidden> Wed, 06 Jan 2010 03:37:13 -0600

Changed in ubiquity (Ubuntu):
status: New → Fix Released
Changed in usb-creator (Ubuntu):
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usb-creator - 0.2.14

---------------
usb-creator (0.2.14) lucid; urgency=low

  [ Mario Limonciello ]
  * When setting the no persistence flag (-n), don't offer changing
    persistence in the UI. There's generally a good reason it's being
    disabled in the first place.
  * When a source image is provided in the startup flags, don't offer
    to select different images in the UI.
  * Widget names are no longer stored in the widget's internal name, but
    rather in the object data. Sync this information back to the widget's
    internal name. (LP: #503710)

  [ Evan Dandrea ]
  * Hack around GTK's lack of good label wrapping (again).
  * Point to correct location for the log file in the man page.
 -- Evan Dandrea <email address hidden> Wed, 06 Jan 2010 22:24:57 +0000

Changed in usb-creator (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers