desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #10818
[Bug 842235] [NEW] Gdk.color_parse returns Gdk.Color instead of a tuple after updating python-gobject to 2.90.3-1svn1
Public bug reported:
I installed Oneiric Beta1, and then updated some packages, among them
python-gobject (which pulled a new package, python-gobject-2). After
this, System Testing (checkbox-gtk) crashes as described in bug 839675.
As indicated in that bug, the problem is caused by an API-breaking
change in PyGTK:
https://bugzilla.gnome.org/show_bug.cgi?id=653462
"
Change Gdk.color_parse() to not return a tuple, instead just
return the created color or None if it wasn't possible to parse
the name into a color.
This keeps compatibility with PyGTK but breaks the current API.
"
So I'm filing this bug to keep track of the fact that the API has
changed.
Steps to reproduce:
1- On an Oneiric b1 system check the version of python-gobject, should be 2.28.6-4.
2- Launch a Python shell and execute:
from gi.repository import Gdk
Gdk.color_parse("#ffffff")
3- Result should be a tuple, like (True, <Gdk.Color(red=65535, green=65535, blue=65535)>)
4- update python-gobject by running sudo apt-get install python-gobject. This will bring in python-gobject-2 and versions will be:
python-gobject 2.90.3-1svn1
python-gobject-2 2.28.6-6svn1
5- Again, aunch a Python shell and execute:
from gi.repository import Gdk
Gdk.color_parse("#ffffff")
6- Result is now just a Gdk.color, like: <Gdk.Color(red=65535, green=65535, blue=65535)>
** Affects: pygobject (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/842235
Title:
Gdk.color_parse returns Gdk.Color instead of a tuple after updating
python-gobject to 2.90.3-1svn1
Status in “pygobject” package in Ubuntu:
New
Bug description:
I installed Oneiric Beta1, and then updated some packages, among them
python-gobject (which pulled a new package, python-gobject-2). After
this, System Testing (checkbox-gtk) crashes as described in bug
839675.
As indicated in that bug, the problem is caused by an API-breaking
change in PyGTK:
https://bugzilla.gnome.org/show_bug.cgi?id=653462
"
Change Gdk.color_parse() to not return a tuple, instead just
return the created color or None if it wasn't possible to parse
the name into a color.
This keeps compatibility with PyGTK but breaks the current API.
"
So I'm filing this bug to keep track of the fact that the API has
changed.
Steps to reproduce:
1- On an Oneiric b1 system check the version of python-gobject, should be 2.28.6-4.
2- Launch a Python shell and execute:
from gi.repository import Gdk
Gdk.color_parse("#ffffff")
3- Result should be a tuple, like (True, <Gdk.Color(red=65535, green=65535, blue=65535)>)
4- update python-gobject by running sudo apt-get install python-gobject. This will bring in python-gobject-2 and versions will be:
python-gobject 2.90.3-1svn1
python-gobject-2 2.28.6-6svn1
5- Again, aunch a Python shell and execute:
from gi.repository import Gdk
Gdk.color_parse("#ffffff")
6- Result is now just a Gdk.color, like: <Gdk.Color(red=65535, green=65535, blue=65535)>
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject/+bug/842235/+subscriptions
Follow ups
References