Do not use deprecated GObject API

Closes rhbz#1043025

Signed-off-by: Jakub Filak <jfilak@redhat.com>