panel: port panel-util.c to gsettings