gui: Make some class member functions const