updated gtk+2.0 package has problems referring to the name of widgets loaded from a builder UI file
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-
The following packages will be upgraded:
gtk2-
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://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
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-
Unpacking replacement libgail-common ...
Preparing to replace libgail18 2.19.1-1 (using .../libgail18_
Unpacking replacement libgail18 ...
Preparing to replace libgtk2.0-common 2.19.1-1 (using .../libgtk2.
Unpacking replacement libgtk2.0-common ...
Preparing to replace gtk2-engines-pixbuf 2.19.1-1 (using .../gtk2-
Unpacking replacement gtk2-engines-pixbuf ...
Preparing to replace libgtk2.0-0 2.19.1-1 (using .../libgtk2.
Unpacking replacement libgtk2.0-0 ...
Preparing to replace libgtk2.0-bin 2.19.1-1 (using .../libgtk2.
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_
File "test.py", line 11, in show
self.
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
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: gtk+2.0
Tags: lucid
Uname: Linux 2.6.32-9-generic i686
Mario Limonciello (superm1) wrote : | #1 |
Mario Limonciello (superm1) wrote : | #2 |
Mario Limonciello (superm1) wrote : | #3 |
Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package mythbuntu-
---------------
mythbuntu-
* 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 : | #5 |
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 : | #6 |
This bug was fixed in the package ubiquity - 2.1.7
---------------
ubiquity (2.1.7) lucid; urgency=low
[ Mario Limonciello ]
* Mythbuntu: Reconfigure mythbuntu-
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 : | #7 |
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 |
I suspect this is the commit that broke things: git.gnome. org/browse/ gtk+/commit/ ?id=46f5ee1d0c0 f4601853ed57e99 b1b513f1baa445
http://