tests: ref_sink before unref a GtkWidget
commitc0eb133e2d7eac3902369ba6cc12b2ae5d73a478
authorNicola Fontana <ntd@entidi.it>
Sun, 25 Dec 2016 21:52:09 +0000 (25 22:52 +0100)
committerNicola Fontana <ntd@entidi.it>
Sun, 25 Dec 2016 21:53:35 +0000 (25 22:53 +0100)
treed99adc7ca24892adf36d5f2075daaadffbca678a
parente71d5a7d386af3209edbee524687daf947e716d6
tests: ref_sink before unref a GtkWidget

Widgets usually have floating references, meaning that reference should
be transformed into a hard reference before removing it. Convert it
early in the testing, so we can handle widgets and other objects in the
same way.
src/tests/adg-test.c