]> Pileus Git - ~andy/gtk/commit
liststore: fix transformation of GValues on set
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 7 Jun 2012 20:01:02 +0000 (16:01 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 7 Jun 2012 20:47:11 +0000 (16:47 -0400)
commite92e767246bae9c30db4649656bf1c90bd6be8b4
treea69df2e55abc8093f232a31555621743cd807968
parent4aab1ea6e9f992bcc54e5b22b77760f7cf862f9a
liststore: fix transformation of GValues on set

There are three bugs here:
- we should check if the value type is transformable instead of being
  compatible, since that's all we care about in order to call
  g_value_transform()
- the check is only meaningful in the direction
  passed-in-type->column-type and not viceversa
- we should init the destination GValue to the column type before
  calling g_value_transform on it, or the destination type information
  will be missing and the method will fail

Thanks to Jasper St. Pierre and Colin Walters for all the help in
tracking this down.

https://bugzilla.gnome.org/show_bug.cgi?id=677649
gtk/gtkliststore.c