Updating deprecated GTK+ functions