unittest FAIL: test_pages_fit_on_a_netbook (test_gtkui.TestFrontend)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
$ cd ubiquity
$ cd gui
$ ln -s ../pixmaps & cd ../
$ ./tests/run
=======
FAIL: test_pages_
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: 530 not less than or equal to 500
-------
The problem is that .ui files are referencing relative paths for pixmaps which do not exist when run from unit-tests and during normal runs generate Gtk.Warnings similar to:
(run:21508): Gtk-WARNING **: Could not load image '../pixmaps/
This does not happen with default_icon, because PIXMAPS environment variable is used to load the images.
A while ago, there was a gtk api for search-dirs of e.g. images/content which I used in another project to source images both from the source tree & global/real install paths. need to look it up again.
Related branches
Changed in ubiquity (Ubuntu): | |
importance: | Undecided → Medium |
The gtk+ish way to deal with this probably is:
* use iconfactory
* add all icons as iconsets into a factory
* stop hardcoding /usr/share/pixmaps
* stop hardcoding ../pixmaps/
* fetch all icons/images using 'symbolic' names
* during testsuite set path / add path to the theme from source code or installed path
As a side-effect:
* ubiquity becomes fully themable, as in every single image can be replaced at runtime with a theme, which maybe desirable for respins.