core: replace deprecated GTK3 function

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>