[AdgEdges] Add weak reference before unreference
commit206bc3c9a5a52699da909e0338be2c825b714126
authorNicola Fontana <ntd@entidi.it>
Sun, 13 Jun 2010 14:05:23 +0000 (13 16:05 +0200)
committerNicola Fontana <ntd@entidi.it>
Sun, 13 Jun 2010 14:05:23 +0000 (13 16:05 +0200)
tree3c904b733de137cb23a8116d26512cf26313db14
parent0caca35970c9054688df2706fee4d8ac192424e6
[AdgEdges] Add weak reference before unreference

While setting the "source" property, add the weak reference to the new
model before removing it from the old model. This theoretically should
give the same result as before: playing with weak references should not
destroy widgets.
src/adg/adg-edges.c